You are here: Re: floating divs width unknown width « HTML « IT news, forums, messages
Re: floating divs width unknown width

Posted by Snef on 10/18/06 05:45

nagasaki mike wrote:
> <div style="position: absolute; width: 200px; background-color:
> #eeeeee;">vodka</div>
> <div style="position: absolute; margin-left:200px; background-color:
> #dddddd;">
> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut gravida. Donec
> nec tellus eu magna malesuada facilisis.
> Suspendisse adipiscing nisl sit amet metus. Praesent rhoncus ullamcorper
> velit. Nam tortor. Maecenas volutpat commodo urna.
> Etiam ornare erat at enim. Cras a velit.</div>
>
>
>
> ah well works in everything but ie. i am now gone.
>
>
I hope your head is allright after the wodka ;)

This is not what i meant. I know I can use a left margin and all but that was
not the question.

The enclosing div is just for test purposes. In the website there is a content
div like the enclosing one.

I was searching for some automatic stretching of the second div. When div1 is
there, it would fill the leftover space, when div is hidden, the second div will
stretch up.
Nevermind, it seems not to be done in css only, i'll use js (already done that,
but i was wondering about a solution purely in css).
Thnx

 

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

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