Re:Ie7-js
by colorandcode on Sunday January 09, 2011 @01:44PM
(#2086028)
position:relative helps fix a number of overflow and box model bugs in the IEs (especially IE7)
Don't forget the even more magic cure-all: zoom: 1;
It doesn't cause z-index bugs like position relative does! :)
Re:Ie7-js
by wookiehangover on Sunday January 09, 2011 @01:32PM
(#2085991)
adding position:relative without knowing what it does... great advice
I didn't express myself well. It was an example where a style attribute may be implicit in one browser, but lead to incorrect rendering in another. In other cases it may be a hack. So I guess the advice is: be explicit.
btw: Microsoft must be the least "green" software-company ever. All the electricity spent on figuring out how to write css for IE.. :)
For JS use Prototype or jQuery and voila, IE renders quite fine.