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

Posted by windandwaves on 10/01/43 11:17

William Hughes wrote:
> On Mon, 30 May 2005 12:07:56 +1200, in alt.html "windandwaves"
> <winandwaves@coldmail.com> wrote:
>
>> Hi Dudettes and Dudes,
>>
>> Sad as it may be, I am still having trouble with the float business.
>>
>> If I want to put two divs next to each other and let them slip one
>> under the other in no way then how do I do that.
>>
>> My plan was:
>>
>> <DIV ID="main">
>> <DIV ID="menu" STYLE="float: left;">menu items</DIV>
>> <DIV ID="copy" STYLE="float: right;">copy stuff</DIV>
>> </DIV>
>>
>> but it does not seem to work (COPY ends up under MENU - btw I am
>> using HTML strict)
>>
>> what am i doing wrong?
>>
>> TIA
>>
>> - Nicolaas
>
> In *.css:
>
> div.menu { float: left; width: 25%; color: #000000; background:
> #c0c0c0 url(./img/bg-menu.gif) }
> div.main { float: right; width: 73% }
>
> Note: I deliberately left a 2% "gutter" for spacing, otherwise the
> text in "main" winds up hard against "menu".
>
>
> In *.htm:
>
> <div class=menu>
> <!--#include virtual="./includes/menu.htm"-->
> </div>
>
> <div class=main>
>
> PAGE BODY HERE
>
> </div>

that works magically (www.wapitipark.co.nz/AV/)

 

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

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