div woes

  • Thread starter Thread starter rodchar
  • Start date Start date
R

rodchar

hey all,
i have 4 divs on my page and i'm trying to use css to lay them out. i'd like
to have div1 and div2 side-by-side and div3 and div4 side-by-side.

is there a way to do this thru css?

thanks,
rodchar
 
Howdy,

<div style="clear: both; width: 200px">
<div style="float: left">div1</div>
<div style="float: right">div2</div>
</div>
<div style="clear: both; width: 200px">
<div style="float: left">div3</div>
<div style="float: right">div4</div>
</div>

You should be fine from this point.
 
Back
Top