Solved

IE6 png html tags fix

Posted on 2010-08-18
14
406 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

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
 

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

840 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