Jump to content

three columns, fixed center, stretched outer columns to fit window? tabless?


ultrus

Recommended Posts

Hello,

I've seen many sample css layouts where there are two fixed outer columns with a stretching center column. I'm trying to create a css layout with a fixed width center, and stretching outer columns that fit the screen. While I can do this using tables, I'm not sure how to do this without tables. Any ideas on how to get started?

 

Thanks :)

Link to comment
Share on other sites

Play with this for starters!

 

#container {
width: 100%;
}
#left_content {
width: ; /* set your width */
float: left:
}
#right_content {
width: ; /* set your width */
float: right:
}

#middle_content {
width: ; /* set your width */
margin: 0px auto;
}
[code]

[code]
<div id="container">

<div id="left_content"> </div>

<div id="right_content"> </div>

<div id="middle_content"> </div>

</div>

[/code][/code]

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.