Previous Message
Next Message

Columns with more than one element

Sent by Tony Haddon on 2 September 2005 11:11


Generally I'd wrap each row in a separate div with a clear:both style 
assigned to it.

<style>
div.row {
    clear: both
    }
</style>

<div class="row">
    <div id=a>aaaaa</div>
    <div id=b>bbbbb</div>
</div>
<div class="row">
    <div id=c>ccccc</div>
    <div id=d>ddddd</div>
</div>

Might not be ideal though and I'm sure more experienced CSSers would 
have a better suggestion. I'd be keen to a way to avoid the extra markup 
myself!

Oops, and I note there's no quotes on your id attributes!

Tony
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Possibly related: