1 reply [Last post]
michaelwall
Offline
newbie
Last seen: 16 years 19 hours ago
Joined: 2005-11-30
Posts: 7
Points: 0

I am trying to achieve a 3 column layout with floats, the left and right columns are floats - should the center content float? (I want the center content to be centered)
It seems to work without making it float.

#leftnav
{
float: left;
width: 140px;
margin: 0;
padding: 0.3em;
}

#rightnav
{
float: right;
width: 140px;
margin: 0;
padding: 1em;
}

#content
{
margin-left: 200px;
margin-right: 200px;
}

ragamuffin
ragamuffin's picture
Offline
Leader
Iowa
Last seen: 12 years 37 weeks ago
Iowa
Joined: 2005-06-02
Posts: 691
Points: 0

3 column floats

You are on the right track. No...the center column does not necessarily need to float. Laughing out loud

- r