OK, here we go:
in your ie_only.css:
- Code: Select all
* { behavior: url(template/inc_css/specific/iepngfix.htc); }
a {
position: relative;
}
in your iepngfix.htc
- Code: Select all
// This must be a path to a blank image, relative to the HTML document(s).
// In production use I suggest '/images/blank.gif' or similar. That's all!
if (typeof blankImg == 'undefined') var blankImg = 'blank.gif';
blank.gif is located within the same folder as iepngfix.htc...
in your phpwcms template you'd like to put the following
- Code: Select all
<!--[if lte IE 7]>
<style type="text/css">@import url(template/inc_css/specific/ie_only.css);</style>
<![endif]-->
into the html head section
If everything goes well, you now should be able to see your background transparencies - especially in IE6
Disadvantage of this method: links in child elements of positioned elements aren't clickable anymore
Possibly a workaround: Restyle all your elements within ie_only.css or try not to use the iepngfix.htc, but style all your transparencies for IE6 within your ie_only.css similar to this:
- Code: Select all
a {
position: relative;
}
header {
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='path/to/header.png', sizingMethod='crop');
/*path should be relative to css, if I remember it right*/
}