| Posted by Gérard Talbot on 06/20/50 11:37 
Toby Inkster wrote :> Dave Smithz wrote:
 >
 >> I would like to be able to position the top of one layer containing some
 >> text to a fixed distance from the bottom of another layer containing text.
 >
 > <div>
 >   Here is some text.
 > </div>
 > <div style="margin-top:58px">
 >   This text is exactly 58px below the other text.
 > </div>
 >
 
 If the layers are nested, then
 
 <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>
 
 Gérard
 --
 remove blah to email me
 [Back to original message] |