You are here: Re: Empty div for holding a background strip of pics... « HTML « IT news, forums, messages
Re: Empty div for holding a background strip of pics...

Posted by mbstevens on 01/24/70 11:56

On Thu, 24 Aug 2006 13:29:17 +1000, dorayme wrote:

> Is there any trouble or downside in using a div for the sole
> purpose of containing a background image, eg. a decorative
> horizontal strip, not very high, 50px at most. If the height is
> css'd at 50px and the pic is naturally 50px high, is it kosher to
> leave out not only width, (a div being 100% by default), but also
> repeat instructions. My tests work as I want.... but if there are
> downsides, I would like to know about them.

It might be a good idea to explicitly specify the z-index
to make sure that it stays on the bottom.
(Assuming you want it to be on the bottom.
I suppose that with a transparent
image you might want it somewhere in the middle of the deck.)
Divs are great fun to use decoratively simply by assigning them a
background color and a z-index. Some people oppose this kind of
use (for instance, like the extra divs at zen garden), but I think it
is perhaps a lesser misdemeanor than many.
--
mbstevens
http://www.mbstevens.com/hume/index.html

 

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

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