You are here: Re: nested divs IE7 vs Firefox « HTML « IT news, forums, messages
Re: nested divs IE7 vs Firefox

Posted by Bergamot on 02/15/07 01:42

geoff@iam.unibe.ch wrote:
>> Well you should use <table style="float: right;'> and not deprecated
>> <table align="right">,
>
> Thanks for the replies. Unfortunately the same problem exists when I
> use style-float instead of align-right!

That's because they are handled the same way, especially in quirks mode.

> z-index doesn't have any effect either.

z-index only affects positioned elements. Float isn't positioned by default.

> http://www.iam.unibe.ch/~geoff/minimal.html

Looks like a variation of the peek-a-boo bug to me. IE6 is badly broken
where it comes to floated elements, but 1 of 2 properties can usually
whip it into shape. You just need to trigger standards mode if you want
results comparable to Firefox or Opera. Use the right DOCTYPE,
preferably HTML 4.01 Strict.

Try adding to the floated element's rules:
position: relative;

If that doesn't work, try adding to the float or its parent container:
zoom: 1;

zoom is proprietary to IE. Other browsers will ignore it, which is very
handy.

For more fun with IE6 bugs, see:
http://www.positioniseverything.net/explorer.html

--
Berg

 

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

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