div woes

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
 
M

Milosz Skalecki [MCAD]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top