You are here: Re: Backgroud images not showing up in empty divs in IE 7 « HTML « IT news, forums, messages
Re: Backgroud images not showing up in empty divs in IE 7

Posted by Chris on 12/10/06 13:38

Sorry this prblem seems to apply to backgrounds in general. It's like if the
div has no content the width reduces to 0. Totally confused.

"Chris" <nospam@btinternet.com> wrote in message
news:9ZSdnXZYcNs0fubYnZ2dnUVZ8q6nnZ2d@bt.com...
>I have a page in which many of the images are set as background images in
>css for empty divs. This works fine in IE 6 and Firefox. I look at it in IE
>and some of them disappear but if I write some text in the div the
>backgroud appears for the length of the text. This is the strange thing the
>backgrond images appear on some empty divs. Here is some sample code I am
>using to create a curved top half of a box. #tl and #tr appear but
>contenttopbg doesn't. Can anyone help? Regards, Chris.
>
> <div id="tl"><div id="tr">
> <div id="contenttopbg"></div>
> </div></div>
>
>
> #contenttopbg
> {
> display:block;
> height:10px;
> margin-left:9px;
> margin-right:9px;
> background-color:#ffffff;
> border-top:solid 1px #3A5B0A;
> }
> #tl {height:10px;background: url(images/topleft.gif) 0 0 no-repeat; width:
> 100%}
> #tr {height:10px;background: url(images/topright.gif) 100% 0 no-repeat;}
>

 

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

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