Previous Message
Next Message

Relative positioning and widths

Sent by Brendan Grossman on 15 June 2006 05:05


Hi everyone

Is it possible to have floating divs side-by-side without the width
specified or with just one set explicitly? 

For example I have two columns... 

Left hand side I want to set explicity, ie. 15em

Right hand side, I want it to fill up the remaining area of the page. 

However when doing this, the right drops below the left div.

Here's sample code I'm using...

#left {
  float: left;
  width: 15em;
}

#right {
  float: left;
}

<div id="left"></div>
<div id="right"></div> <!-- drops below left div -->

Is there a way around what I'm trying to do?

Cheers
Brendan

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: