Forum Moderators: not2easy

Message Too Old, No Replies

some images disappear using the IE PNG Fix

         

blindcat

10:08 pm on Mar 31, 2009 (gmt 0)

10+ Year Member



Hi i'm using the IE PNG Fix v1.0 / 2.0 Alpha 3 workaround to display my png images using Internet explorer. It works, but only for the tiled image in my container and not my relatively positioned corner images to the side of it, they fail to show up all together!

Any ideas?

Thanks

<snip>

my code...

body {
font: 80% verdana, arial, helvetica, sans-serif;
text-align: center; /* for IE */
background-color: #333333;
background-image: url(Images/circuit-gradient-380x1050.jpg);
}
#container {
text-align: left; /* counter the body center */
width: 80%;
background-image: url(Images/xrepeatheader.png);
background-repeat: repeat-x;
height: 108px;
margin-right: auto;
margin-left: auto;
position: relative;
min-width: 700px;
max-width: 900px;
}
#Logo {
background-image: url(Images/Photronics%20practice.png);
position: relative;
background-repeat: no-repeat;
height: 70px;
width: 410px;
top: 20px;
left: 7px;
}
#leftcorner {
background-image: url(Images/leftcornerheader.png);
float: left;
height: 108px;
width: 27px;
margin-left: -27px;
position: absolute;
}
#rightcorner {
background-image: url(Images/rightcornerheader.png);
float: right;
height: 108px;
width: 27px;
margin-right: -27px;
position: relait;
left: 0px;
top: 0px;
}
#content {
background-color: #FFFFFF;
margin: auto;
height: 300px;
width: 81%;
border: 5px solid transparent #999999;
min-width: 700px;
max-width: 900px;
}
div { behavior: url(iepngfix.htc) }
</style>
</head>

<body>
<div id="container">
<div id="leftcorner"></div>
<div id="rightcorner"></div>
<div id="Logo"></div>
</div>
<div id="content"></div>
</body>
</html>

[edited by: swa66 at 10:47 pm (utc) on Mar. 31, 2009]
[edit reason] No personal URLs please see ToS. [/edit]

simonuk

2:06 pm on Apr 1, 2009 (gmt 0)

10+ Year Member



The AlphaImageLoader does work for background images, but only in limited cases. If the image is tiled (background-repeat) or positioned (background-position) then I'm afraid you're out of luck.

CSS_Kidd

2:33 pm on Apr 1, 2009 (gmt 0)

10+ Year Member



The ie png fix will only work on bg images that are placed top and left and not repeated.

blindcat

9:33 pm on Apr 1, 2009 (gmt 0)

10+ Year Member



I have been using an image repeated along the x axis and it works fine! My relatively positioned corners outside the container don't show up. If I make the window smaller, the corner overlaps over the container and reveals it if that makes sense?

I might try a different technique...