IE6 PNG transparency fix with Backgroud positioned
- by durilai
So I am using this to fix PNG transparency on background images in IE6
ul li a
{
background-image: url('/NewSite/Content/Images/Sprite.png');
background-repeat: no-repeat;
background-position: 0 -48px;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=/NewSite/Content/Images/Sprite.png, sizingMethod='crop');
}
This works great, however I have run into a problem when trying to implement this with a sprite. The fix ignores the positioning and renders as if the position was top right.
Is there a way to force background position or a better way to do this. I would prefer to not use JavaScript or change to gifs.
Any help is appreciated!