I implemented the code to dislay the bar at the top of the stackoverflow screen: How to show popup message like in stackoverflow
What this does is display the div over top of the div at the top of the page. How can I display the new “bar” div and push the others down? Just like StackOverflow does.
Edit: The immediate reaction to my code below will be to not use the
div#removemetag and instead provide amargin-bottom. However if you are going withposition:fixedthis won’t work as it attaches itself to the window and not the document.This is what i do:
In my html document:
The CSS for this floating pane is:
And then use jquery in the
<head>tag:I have an extra
<div>tag with idremovemeto push the contents down when the floating pane is visible and i remove it whenever the floating pane is hidden.