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/17/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

 

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

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