08-20-2009, 01:10 PM
|
#5 (permalink)
|
|
The Contributor
Join Date: Nov 2008
Location: Sweden
Posts: 36
Thanks: 1
|
Quote:
Originally Posted by Rhinos
Ok this is right out of the facebook CSS (I used firebug to inspect the bottom bar):
Code:
body #presence {
bottom: 0;
color: #111111;
font-size: 11px;
height: 25px;
padding: 0;
position: fixed;
right: 0;
width: 100%;
z-index: 99;
}
What you see here is that instead of using absolute positioning, they use fixed positioning. This will keep it in place regardless of scrolling.
The z-index is used so that it stays above the other content on the page (and any embedded flash that may be on the page).
On facebook they also have another div inside the div that uses the above code that is 100% width and uses a margin to make the gaps on the left and right of the bar.
|
They prob have a conditional comment or css hack directly in the css as fixed positioning isn't supported in internet explorer. And about the z-index overlapping flash is depending on how the flash itself is displayed.
To the thread starter, just put position: relative; on your body 
|
|
|
|