You are here: Re: basic div height problem « HTML « IT news, forums, messages
Re: basic div height problem

Posted by Ciaran on 05/23/07 09:51

On May 22, 9:37 pm, "Jonathan N. Little" <lws4...@centralva.net>
wrote:
> Ciaran wrote:
> > On May 22, 4:58 pm, "Jukka K. Korpela" <jkorp...@cs.tut.fi> wrote:
> >> Scripsit Ciaran:
>
> >>> Anyone know off hand how to make this work?
> >>> <body>
> >>> <div style="background:#000000; height:50%;"></div>
> >>> </body>
> >> Work in which sense?
>
> >>> The div heaight doesn't work.
> >> Key question: 50% of _what_?
>
> >> To make the situation more definite, set
>
> >> html, body { height: 100%; margin: 0; padding: 0; }
>
> ^^^^ ^^^^
>
> Set *both* the BODY *and* its parent HTML element
>
>
>
> >> --
> >> Jukka K. Korpela ("Yucca")http://www.cs.tut.fi/~jkorpela/
>
> > Cheers guys but I tried that already. The following doesn't work
> > either, the div still is only the height of a line of type.
>
> > <body style="height: 100%; margin: 0; padding: 0; ">
> > <div style="background:#000000; height:50%;"></div>
> > </body>
>
> You *only* set the BODY to 100% of what?
>
> --
> Take care,
>
> Jonathan
> -------------------
> LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com- Hide quoted text -
>
> - Show quoted text -


Ah excellent, thanks! I never knew you could style the html tag!
imagine!

 

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

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