View Full Version : css alignment issues - help needed

03-09-2010, 05:57 AM
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:


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:


Thanks in advance, any help is greatly appreciated!


03-09-2010, 06:43 AM
Hello motionphi,
Floats need a width supplied to work. Otherwise they don't know how much room they are supposed to occupy and how much to leave for something else.

Try making these changes to your CSS -

.oneColFixed #headertext {
/*float: right; must have a width to float*/
margin: 0 0 0 240px; /*with #headerlogo floated this element can just be margined over*/
text-align: left;
padding: 0;
.oneColFixed #footer p {
margin: 0;
padding: 5px 5px 5px 5px;
font:65%/1.4em "Trebuchet MS",Trebuchet,Arial,Verdana,Sans-serif;
clear: both;