Solved

IE6 png html tags fix

Posted on 2010-08-18
14
403 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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

744 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

11 Experts available now in Live!

Get 1:1 Help Now