|
Posted by Jonathan N. Little on 12/04/07 15:59
Shelly wrote:
> Bergamot wrote:
>> Your html:
>> <div id="index-01"></div>
>
> The #index-01 has a background-image. It does display.
>
>> It's an empty element, which means it has no height, so there is no
>> space for a background. As it should be.
>
> Please expand.
>
I don't know, its pretty self explanatory, but lets try an analogy.
What is size of the smallest box needed to hold *zero* wombats? Now you
measure the sides of that box and find height, width, and depth is
0"x0"x0". Now what color is it?
Same goes for the DIV. If it contains nothing then it will have *no
size* and therefore no background. You can explicitly give an empty DIV
dimensions as also you could grab a larger box to hold zero wombats, but
note that some browsers may not display a DIV unless it has something in
it, especially depending on your doctype.
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|