Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

IE6 png html tags fix

Posted on 2010-08-18
14
Medium Priority
?
414 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses

810 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