Solved

IE6 png html tags fix

Posted on 2010-08-18
14
404 Views
Last Modified: 2012-06-21
Has anyone implemented png transparency in IE6 using html 5 tags? The one i used iepngfix as far as I can teel doesn't support it yet. Basicallt need background and background position support.
0
Comment
Question by:asaworker
  • 8
  • 5
14 Comments
 
LVL 13

Expert Comment

by:qwerty021600
ID: 33471993
Try this for IE 6 png background issue

.logo {
 background-image:url(Images/logo.png);
 width:165px;
 height:53px;
 cursor:hand;
}
*html .logo {
 background:none;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='Images/logo.png',sizingMethod='image');
}
0
 

Author Comment

by:asaworker
ID: 33472980
I thought filter would only work on elements that are not repeated or not positioned. I have some elements that do both. I will try this though. WIll that work with html 5 tags?
0
 
LVL 4

Expert Comment

by:Morrisproject
ID: 33472995
Or something like this::

<!-- fix issue with PNG images -->
<!--[if lt IE 7.]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE7.js" type="text/javascript"></script>
<![endif]-->

NB:
The script only fixes images named: *-trans.png
If you want the fix to apply to all PNG images then set a global variable as follows:

var IE7_PNG_SUFFIX = ".png";

You must set this variable before including the IE7.js script. Alternatively, you can set the variable inside the IE7.js script element:

<script src="IE8.js">IE7_PNG_SUFFIX=".png";</script>

Check here for more details : http://code.google.com/p/ie7-js/
0
 

Author Comment

by:asaworker
ID: 33481685
i need something that fixes divs too...having an issue on www.joerav.com using IE6.
0
 
LVL 4

Expert Comment

by:Morrisproject
ID: 33497139
Have you looked at the google code link?? It fixes multiple ie6 issues. Any further issues with ie6 should be able to be resolved in CSS

Like :
* html .class {left:10px;}
0
 

Author Comment

by:asaworker
ID: 33502620
I think it's more of a html 5/ie 6 issue with pngs.
0
 
LVL 4

Expert Comment

by:Morrisproject
ID: 33502767
The code should resolve it, have you tried it.

Do you have a live page which i can view, which has the code i referred to being used?
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Comment

by:asaworker
ID: 33502810
The website is joerav.com...i will apply your fix later to see what happens.
0
 
LVL 4

Expert Comment

by:Morrisproject
ID: 33502933
let me know the result when fix in place then
thanks
0
 

Author Comment

by:asaworker
ID: 33509781
http://www.joerav.com has been updated with no luck...page freezes in IE. I am using a combination of this fix plus html5shiv, jquery 1.4.2 and jquery tools. WIll the fix only work on images that are in the source code...what about background pngs. Most of my pngs are background images. The version I used before was having issues with pngs as background images on divs.
0
 
LVL 4

Expert Comment

by:Morrisproject
ID: 33512594
I normally use the google code and the following png fix together:

http://homepage.ntlworld.com/bobosola/pnghowto.htm

And not had any issues, even with background pngs. Let me know if your still having problems
0
 

Author Comment

by:asaworker
ID: 33512682
I'll try that and let you know.
0
 

Accepted Solution

by:
asaworker earned 0 total points
ID: 35119274
I used the DD_belatedPNG_0.0.8a.js library and that did the trick.
0
 

Author Closing Comment

by:asaworker
ID: 35154570
This librayr works great for pngs on IE6
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The viewer will learn how to dynamically set the form action using jQuery.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now