1 reply [Last post]
adentone
Offline
Regular
Spokane, WA
Last seen: 15 years 48 weeks ago
Spokane, WA
Timezone: GMT-8
Joined: 2005-02-24
Posts: 15
Points: 0

Here is my site: www.dentone.net/orly
CSS File: www.dentone.net/orly/common/css/default.css

It all validates CSS and XHTML Transitional (except for embeds) and I am having trouble with keeping it from breaking when making the window smaller than 1024x768. I would like to have a static left column that is about 300px wide, with the rest of the width taken by the right content column. I currently have a % set for the right and a width: 300px; for the left.

Any ideas?

Help will be greatly appreciated!

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 6 years 15 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Fluid right column with static left column - css help!

I can't get your link to work, but you don't need to set a width on the right column as it'll automatically take whatever space is left for it. Just give it a margin-left wider than 300px (no width and no float). Your left column should be floated.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference