Home › Forums › CSS › newbie page centering for hard-to-tile backgrounds › Re: newbie page centering for hard-to-tile backgrounds
October 18, 2011 at 9:53 pm
#89272
Member
First, which CMS is this so I know to avoid them ;)
You have a table inside a table in that header which is causing you grief. Below is cleaned up table. In addition, if you are being forced to use tables it would be helpful for that table to have a class. Note the class=”header-container” in the first line.
LOGO IMAGE HERE
BLOG CONTACT
In your CSS remove the margins and padding from #header and add CSS for .header-container
#header {
min-height:105px;
background-image:url(images/wallpaper-bg-top.gif);
width: 100%;
}
.header-container {
width:918px;
height:110px;
margin-left:auto;
margin-right:auto;
}
This should get you closer.