You're not supposed to have a hyphen before non vendor specific CSS properties. Remove the hyphen from -filter: ...
:
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2); /* IE6,IE7 */
Additionally, you might need to trigger hasLayout
by adding overflow:auto
or zoom:1
to your CSS. Here is a demonstration (I've tested this in IE7 using browserlabs).