Skip to content Skip to sidebar Skip to footer

Header Not Touching Top Of Screen

I have a header on my page at the very top of the screen and extends across the entire screen. It is rendered as a rails partial. Whenever there is anything in the body of the page

Solution 1:

padding: none; is not valid value for padding attribute.

try padding:0 instead of it

body{
    background-color: #Dee0D5;
    margin:0;
    padding:0;
}

Solution 2:

Set the padding-top to -5px? I believe 5px is the default margin.

Post a Comment for "Header Not Touching Top Of Screen"