Home › Forums › CSS › CSS Fixed Header Issues…KEEPS ALIGNING LEFT!!!! › Re: CSS Fixed Header Issues…KEEPS ALIGNING LEFT!!!!
January 10, 2011 at 11:31 am
#66721
Josh
Member
gno’s code will work as well. But another solution is to wrap the fixed div with a relative div and apply position styling to the relative div.
The CSS:
#headerWrap{
position:relative;
width:600px;
height:80px;
margin:0 auto;
}
#header{
position:fixed;
width:600px;
height:80px;
background:blue;
}
The HTML:
HEADER CONTENT HERE