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
Milosz Skalecki [MCAD] - 30 Nov 2007 23:08 GMT
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.

Signature
Milosz
> hey all,
> i have 4 divs on my page and i'm trying to use css to lay them out. i'd like
[quoted text clipped - 4 lines]
> thanks,
> rodchar
John Timney (MVP) - 01 Dec 2007 00:25 GMT
You just need to learn a little about DIV and CSS based tables
Lots of example around - just check the source of some of them like this
one.....
http://www.dev-archive.net/articles/table-in-css.html#Tbl1
Regards
John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
> hey all,
> i have 4 divs on my page and i'm trying to use css to lay them out. i'd
[quoted text clipped - 5 lines]
> thanks,
> rodchar
rodchar - 04 Dec 2007 14:11 GMT
thank you everyone for the help.
rod.
> hey all,
> i have 4 divs on my page and i'm trying to use css to lay them out. i'd like
[quoted text clipped - 4 lines]
> thanks,
> rodchar