bwg
Aug-25-2006, 11:54 AM
Just beginning to do some testing with IE7 now that the RC1 is out. Today I found something that may be of interest.
Putting an underscore in front of a css property will cause IE6 to evaluate the property but firefox and other standards compliant browsers will ignore it. This is helpful for targeting IE when it is necessary to do IE specific css trickeration. They have fixed this hole in IE7 so the underscored property will be correctly ignored.
Today I discovered that prefixing a property with a tilde ~ in IE7 will produce the same behavior as the underscore in IE6. (the tilde also works for IE6)
So if you are having some issues with IE7 and need to target it specifically, you can use the tilde ~ hack.
Putting an underscore in front of a css property will cause IE6 to evaluate the property but firefox and other standards compliant browsers will ignore it. This is helpful for targeting IE when it is necessary to do IE specific css trickeration. They have fixed this hole in IE7 so the underscored property will be correctly ignored.
Today I discovered that prefixing a property with a tilde ~ in IE7 will produce the same behavior as the underscore in IE6. (the tilde also works for IE6)
So if you are having some issues with IE7 and need to target it specifically, you can use the tilde ~ hack.