IE PNG Workaround Trick
by z3n on Jan.13, 2009, under Coding, Tips & Hints
We all know ie sucks a lot, but when it comes to transparent png it’s another level of suckness.
I’m designing a site with those little shadow borders, like 4px in height, the usual ie6< fix:
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='image.png', sizingMethod='scale');
apparently work, but if you look closely, for small height divs it don’t work right.
it assumes that the minimum height is the same height of the font on that div, so how stupid is this?
a work around would be:
.your_happy_class { font-size:1px; }
an interesting fact is that IE don’t support the line-height feature right, so if you were thinking in use this, you thought wrong! hahahah