You are here: Re: Trouble structuring my site « HTML « IT news, forums, messages
Re: Trouble structuring my site

Posted by julian.bash on 10/04/07 18:11

On Sep 28, 9:30 am, Ben C <spams...@spam.eggs> wrote:
> On 2007-09-23, julian.bash <misterio...@googlemail.com> wrote:
>
>
>
> > On Sep 23, 11:38 pm, Bergamot <berga...@visi.com> wrote:
> >> julian.bash wrote:
>
> >> > #middle { height:100%; margin-top:100px; margin-bottom:100px; }
>
> >> Wouldn't that would make the total height 100% plus 200px?
>
> >> --
> >> Berg
>
> > You're right, this works for me:
>
> > body { margin:0; }
> > div { position:absolute; width:100%; }
> > #top { height:100px; }
> > #middle { top:100px; bottom:100px; }
> > #middle { height:expression(document.body.clientHeight-100); }
>
> That "expression" thing is completely non-standard.
>
> > #bottom { height:100px; bottom:0; }
> > #bottom { margin-top:expression(document.body.clientHeight-100); }
>
> And that one isn't necessary anyway.
>
> Just make middle position absolute as well and give it top: 100px,
> bottom: 100px and height: auto.

Position: absolute and setting bottom- or right-values doesn't work in
ie.

--julian

 

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

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