Advertisement

03.18.2008 at 01:05PM PDT, ID: 23251596 | Points: 250
[x]
Attachment Details

Can I apply the ie6 png alpha transparency fix server-side without defined width and height?

Asked by skatc2 in Hypertext Markup Language (HTML), Cascading Style Sheets (CSS), Internet Explorer Web Browser

Tags:

I've got a jsp tag to display an <img>, or for alpha-transparent pngs in ie6 to display a blank image with the AlphaImageLoader applied to it.  My major limitation is that I don't have the image width and height.  My current output looks like this:

<img src="blank.gif" style="filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=theimage.png), sizingMethod=scale;"
class="whatever" alt="whatever" whatever="whatever"
/>

In ie 5.5 sizingMethod=scale seems to work well, but in ie 6 it sometimes scales images to completely wrong dimensions for unknown reasons (padding in css?).  Also, if I put one of these <img>s in an anchor, the link hitmap becomes the areas of the image with alpha > 0, instead of the image box.  Are there solutions to these problems?  Is there some better way to apply this filter on the server-side without access to the image's width and height?Start Free Trial
[+][-]03.18.2008 at 02:36PM PDT, ID: 21156135

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.18.2008 at 02:54PM PDT, ID: 21156295

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.18.2008 at 02:57PM PDT, ID: 21156339

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.25.2008 at 03:35PM PDT, ID: 21206909

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42 / EE_QW_2_20070628