At the top of your Facebook home page there is a blue stripe that fills the entire top portion of the page. I was wondering how to do this in CSS. If you have any ideas please reply.
Blue stripe in Facebook?
Collapse
X
-
Tags: None
-
Here is what Facebook does:
Code:<div id="blueBar" class="broke-endless-pages"></div>
Code:#blueBar { background-color: #3B5998; height: 41px; left: 0px; position: absolute; width: 100%; } div { display: block; }
Setting the display property to block forces #blueBar to take up the set width, without actually inserting content.
Thanks, Death
Comment