YazminMedia Blog - Helping You Grow Online
CSS Code for IE 6 and 7 don’t play nice together
on Jan 15, 2008 in Blog, CSS tagged by Yazmin
You would think that as we move along in browser developments, developers would try to keep out new exceptions. Today I was trying to find a solution for a background color that wasn’t taking in IE6 and I ran across this post by Romain at Deep Inside title IE6 And IE7 don’t have compatible CSS tricks.
Turns out that if you want your IE code hack to apply to IE7, you’re going to have to duplicate the hack and replace the underscore with a period, like so:
font-size: 1.3em; /* For every browser */
_font-size: 1.1em; /* Size description for IE6 */
.font-size: 1.1em; /* Size description for IE7 */
Yes. Internet Explorer is the bane of my existence as a developer…

Loading...
There are no comments yet, add one below.
Leave a Comment