Jump to content

3 column layout help


ChaosKnight

Recommended Posts

I have to redo my entire layout, because clients said it looks too "boxed in" (780px with a border around it).

So I now made it a bit more dynamic with 99% width and margin-left and margin-right set to auto. But now I can't seem to get the layout of the columns right...

 

I got the left bar and the content lined up correctly, but the right bar floats below them and is showing up directly under the left bar

 

It needs to look something like this:

 

    170px          Rest of the 99%            170px

<-----------><-----------------------------><------------>

 

Here is the css code that I tried to achieve this result with:

#body {
width: 99%;
margin-left: auto;
margin-right: auto;
}
#sidebar-left {
float: left;
width: 170px;
}
#content {
margin: 0 170px 0 170px;
}
#sidebar-right {
float: left;
width: 170px;
}

 

Any help will be greatly appreciated...

Thanks

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.