You are here: Re: Tiling of background image. « HTML « IT news, forums, messages
Re: Tiling of background image.

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]


Удаленная работа для программистов  •  Как заработать на 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

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