[CSS] Floating columns: left = 100%, right = fixed width?

Associate
Joined
3 Jun 2007
Posts
34
Hi :)

Does anyone know of a way to do the following?

float: left; float: right;
width: 100%; width: 120px;
------------------------------------- -----------------

------------------------------------- -----------------

Basically what i'm looking for is a two column layout, by floating 2 div's and having one set to 100% and the other at a fixed width of 120px ... but it won't let me do this!, it the right column will drop below the left column because the left is set to 100%.

Does anyone know of a way to get round this?
 
Float the right column to the right and set its width to 120px.

Don't float the left column, don't set its width (ensuring display: block) but set its margin-right to 120px.

Is that what you're explaining?
 
Back
Top Bottom