|
Posted by Jonathan N. Little on 05/22/07 20:37
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 STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|