I'm working on an app where we insert our app's widget into the body of a site, at the bottom. We made it so that the widget's position is fixed, with bottom: 0. The widget would persist no matter where you are on the site; that is, it's at the bottom of the viewport. The trouble is that the widget covers elements at the bottom of the site.
Is there any way I can push the site's content up, regardless of its content's positioning (e.g. position and float properties), such that our widget will never cover anything on the site? Because of the widget's "position: fixed", it breaks out of normal layout, and thus putting a margin- or padding-top won't do anything.
I've tried the temporary solution where I add a div before the widget itself that's the height of the widget, so it pushes everything up and out of the way. However, if the site itself has floated or bottom-positioned elements, those will be covered up anyways.
Update: Thanks for all the answers. In the end, I pretty much gave up on this task, since it seems to be site-specific, and the widget is meant to be embedded on any site through a <script>
. Guess I should have said that beforehand.
Update 2: Last answer solved it.