|
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]
|