|
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!
[Back to original message]
|