Blue stripe in Facebook?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BaseballGraphs
    New Member
    • Sep 2010
    • 75

    Blue stripe in Facebook?

    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.
  • Death Slaught
    Top Contributor
    • Aug 2007
    • 1137

    #2
    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

    Working...