Header Centered on body instead of stretched whole screen
-
Right now my header logo and header menu, stretches against the width of the screen, depending on what size screen you have.
I want it to be a fixed image that is centered above the body of my site, the width of that is 868px.
I found this code in style.css but not sure what to change to make this happen. I see it has the words repeat but not sure if I should change that.
#header {
background:url(“images/header_image.jpg”) repeat-x top center;
border-bottom:6px solid #FFF;
clear:both;
color:#fff;
float:left;
height:120px;
margin:0;
padding:0;
width:100%;
}Basically I want the background to show on the left and right areas, and the header be only as wide as the body of my site.
https://www.averageguygolf.com
Thanks
- The topic ‘Header Centered on body instead of stretched whole screen’ is closed to new replies.