Css alignment issues - help needed

Hi, I’m having some layout issues with my site and I’m hoping someone would be kind enough to point me in the right direction for fixing the HTML/CSS.

My website (redesign) is here:

motionphi.com/redesign

It’s a pretty simple layout with a header, main content, and footer all within a container div. the container div is wrapped in another div to get a drop shadow effect.

The site looks fine in Firefox on Mac. On Safari, Chrome and Opera it is severely broken.

I was all behaving nicely until I introduced floats to the header section. I believe I need to use floats to properly have a two column layout in the header (logo on the left, graphic text and links on the right), but if there is another way to code this I’d like to know.

This is a link to the way it is supposed to look:

motionphi.com/redesign/site_redesign.jpg

Thanks in advance, any help is greatly appreciated!

DS

Hi motionphi, Welcome to SitePoint! :slight_smile:

I was all behaving nicely until I introduced floats to the header section.

You just need to contain the floats within their parent’s and clear the floats above the footer.

These adjustments below should get things sorted out for you.



.oneColFixed [B]#header[/B] {
    background-image:url(../images/topgradient.png);
    height: 180px;
    padding: 25px 35px 15px 35px;
  [COLOR=Blue]  overflow:hidden;/*contain child floats*/[/COLOR]
}

.oneColFixed [B]#mainContent[/B] {
   [COLOR=Blue] width: 860px;/*IE6/7 haslayout*/[/COLOR]
    padding: 0 20px;
    background: #d0d0d0;
    text-align: center;
[COLOR=Blue]    overflow:hidden;/*contain child floats*/[/COLOR]
}

.oneColFixed [B]#footer[/B] {
[COLOR=Blue]    width: 860px;/*IE6/7 haslayout*/
    clear:both;[/COLOR]
    padding: 20px;
    background:#d0d0d0;
    text-align:center;

}

Rayzur- worked like a charm. Thanks so much.