|
Posted by Mark Parnell on 09/29/42 11:17
Previously in alt.html, windandwaves <winandwaves@coldmail.com> said:
> I am still having trouble with the float business.
http://www.w3.org/TR/CSS2/visuren.html#floats
> <DIV ID="main">
> <DIV ID="menu" STYLE="float: left;">menu items</DIV>
> <DIV ID="copy" STYLE="float: right;">copy stuff</DIV>
> </DIV>
> what am i doing wrong?
For one, you aren't including a width - width is required when using
float[1]. My guess would be that the browser is assuming a width of 100%
or something, but who knows?
Depending on what you are doing, you probably don't need to specify
float: right on the second one. In fact, you may be better off using
float: left, but that depends on the desired result.
[1] In most situations, including this one.
--
Mark Parnell
http://www.clarkecomputers.com.au
alt.html FAQ :: http://html-faq.com/
Navigation:
[Reply to this message]
|