Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS newbie page centering for hard-to-tile backgrounds Re: newbie page centering for hard-to-tile backgrounds

#89272
grovesk
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.