You are here: Re: Weird div overflow problem with borders on IE6 « HTML « IT news, forums, messages
Re: Weird div overflow problem with borders on IE6

Posted by rf on 06/01/07 06:53

"TazmanianD" <damon.lundin@gmail.com> wrote in message
news:1180674110.904209.223920@g4g2000hsf.googlegroups.com...
> Can someone explain to me why in the following fragment on IE6, "Outer
> 1" gets a yellow background? It appears that the size of the outer
> div is being calculated incorrectly and it is overlapping content
> following it. If you remove the border from the inner div or if you
> remove the middle div, then the background gets rendered properly.
> This looks like it's just a bug in IE6. It gets rendered properly on
> Firefox. Does anyone know a good way to work around this. If I stick
> a 1px border on the outer div, then the background renders properly
> but I'd rather not have to do that.
>
> <DIV style="background-color: yellow">
> <DIV>
> <DIV style="border: solid">
> Inner 1
> </DIV>
> </DIV>
> </DIV>
> Outer 1<BR/>
> Outer 2

Bug.

Same with IE7.

IE is very confused with many background/border combinations.

What's wrong with
<div style="border: solid; background-color: yellow"> ?
Inner1
</div>

--
Richard.

 

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

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