You are here: Re: css question « HTML « IT news, forums, messages
Re: css question

Posted by Mark Parnell on 10/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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация