You are here: Re: CSS Position Layer relative to bottom of another layer. « HTML « IT news, forums, messages
Re: CSS Position Layer relative to bottom of another layer.

Posted by Gérard Talbot on 11/22/84 11:37

Toby Inkster wrote :
> Gérard Talbot wrote:
>
>> <head>
>> (...)
>> <style type="text/css">
>> div#Container, div#NestedDiv {position: absolute;}
>> div#NestedDiv {bottom: 58px;}
>> </style>
>> (...)
>> </head>
>> <body>
>> (...)
>>
>> <div id="Container">Here is some text. Must be at least 59px in height.
>> <div id="NestedDiv">This text is exactly 58px from the bottom of its
>> containing block.</div>
>> </div>
>
> But here, the *bottom* of the nested div is 58px *above* the bottom of the
> container, which doesn't sound like what the OP wanted at all.
>

Ok. I read the OP post and misinterpreted it incorrectly. With abs. pos.
elements and a nested one, then one would need to compute/get the
clientHeight of the containing block (id="Container") and then add 58px.
Reposition would have to be done on an onload event of the body node.
If the nested div is not abs. pos., then your proposal is correct.

Cheers,

Gérard
--
remove blah to email me

 

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

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