\n\n\n<\/tt><\/pre>\n<\/td>\n\n<img src="<\/span>\/images\/pullmonkey_logo.png<\/span>"<\/span><\/span>><\/pre>\n<\/td>\n<\/tr>\n<\/table>\nApplying the fix for IE (note that unfortunately this does not work in firefox):<\/p>\n \n\n\n1\n<\/tt>2\n<\/tt>3\n<\/tt>4\n<\/tt><\/pre>\n<\/td>\n\n\n<\/tt><DIV<\/span> ID<\/span>="<\/span>oDiv<\/span>"<\/span><\/span> STYLE<\/span>="<\/span>position:relative; height:78px; width:353px;\n<\/tt> filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='\/images\/pullmonkey_logo.png', sizingMethod='scale');<\/span>"<\/span><\/span> >\n<\/tt><\/<\/span>DIV>\n<\/tt><\/span><\/span><\/pre>\n<\/td>\n<\/tr>\n<\/table>\nThe code:<\/p>\n \n\n\n1\n<\/tt>2\n<\/tt>3\n<\/tt>4\n<\/tt>5<\/strong>\n<\/tt>6\n<\/tt>7\n<\/tt><\/pre>\n<\/td>\n\n <DIV<\/span> ID<\/span>="<\/span>oDiv<\/span>"<\/span><\/span> \n<\/tt> STYLE<\/span>="<\/span>position:relative; \n<\/tt> height:78px; \n<\/tt> width:353px;\n<\/tt> filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(\n<\/tt> src='\/images\/pullmonkey_logo.png', sizingMethod='scale');<\/span>"<\/span><\/span> >\n<\/tt> <\/<\/span>DIV>\n<\/tt><\/span><\/span><\/pre>\n<\/td>\n<\/tr>\n<\/table>\nOk good, so we can make it work in IE and firefox but with different solutions. \nThe fix in IE does not work in firefox and likewise the firefox solution does not handle transparencies in IE.<\/p>\n The solution is to put everything in CSS and use the * html IE hack: \nHere is my solution: \nThe header where the image is displayed:<\/b><\/p>\n\n\n\n1\n<\/tt>2\n<\/tt>3\n<\/tt>4\n<\/tt>5<\/strong>\n<\/tt>6\n<\/tt>7\n<\/tt>8\n<\/tt>9\n<\/tt><\/pre>\n<\/td>\n\n <div id="<\/span>header<\/span>"<\/span><\/span>>\n<\/tt> <h1>\n<\/tt> <a href="<\/span>\/<\/span>"<\/span><\/span>>\n<\/tt> <img src="<\/span>\/images\/pullmonkey_logo.png<\/span>"<\/span><\/span> \/>\n<\/tt> <\/<\/span>a>\n<\/tt> <<\/span>\/<\/span><\/span>h1>\n<\/tt> <div ID<\/span>="<\/span>pullmonkey_logo_ie<\/span>"<\/span><\/span>>\n<\/tt> <\/<\/span>div>\n<\/tt> <<\/span>\/<\/span><\/span>div><\/pre>\n<\/td>\n<\/tr>\n<\/table>\nThe CSS to hide the regular image from IE:<\/b><\/p>\n\n\n\n1\n<\/tt>2\n<\/tt>3\n<\/tt><\/pre>\n<\/td>\n\n * html #header img {<\/span>\n<\/tt> display: none;\n<\/tt> }<\/pre>\n<\/td>\n<\/tr>\n<\/table>\nThe CSS to do the directx transparency:<\/b><\/p>\n\n\n\n1\n<\/tt>2\n<\/tt>3\n<\/tt>4\n<\/tt>5<\/strong>\n<\/tt>6\n<\/tt>7\n<\/tt><\/pre>\n<\/td>\n\n * html div#pullmonkey_logo_ie {<\/span>\n<\/tt> position:relative<\/span>;\n<\/tt> height:78<\/span>px;\n<\/tt> width:353<\/span>px;\n<\/tt> filter:progid<\/span>:DXImageTransform<\/span>.Microsoft<\/span>.AlphaImageLoader(\n<\/tt> src='<\/span>\/images\/pullmonkey_logo.png<\/span>'<\/span><\/span>);\n<\/tt> }<\/pre>\n<\/td>\n<\/tr>\n<\/table>\nApplying the stylesheet:<\/b><\/p>\n\n\n\n\n<\/tt><\/pre>\n<\/td>\n\n<div id="<\/span>header_demo<\/span>"<\/span><\/span>><a href="<\/span>\/<\/span>"<\/span><\/span>><img src="<\/span>\/images\/pullmonkey_logo.png<\/span>"<\/span><\/span> \/><div ID<\/span>="<\/span>pullmonkey_logo_ie<\/span>"<\/span><\/span>><\/<\/span>div><<\/span>\/<\/span><\/span>a><\/<\/span>div><\/span><\/span><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n\nSo there it is, see that it shows up transparently in both IE and Firefox.<\/p>\n","protected":false},"excerpt":{"rendered":" For the last few days I have been trying to figure out the best way to handle png transparency in IE. (my logo is a png) Of course I checked Google and went to the following sites: http:\/\/alistapart.com\/stories\/pngopacity\/ http:\/\/www.pcmag.com\/article2\/0,1759,1645331,00.asp http:\/\/support.microsoft.com\/kb\/294714 to pretty much learn that IE does not support png transparency and that you have […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,7],"tags":[],"_links":{"self":[{"href":"http:\/\/pullmonkey.com\/wp-json\/wp\/v2\/posts\/11"}],"collection":[{"href":"http:\/\/pullmonkey.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pullmonkey.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pullmonkey.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/pullmonkey.com\/wp-json\/wp\/v2\/comments?post=11"}],"version-history":[{"count":0,"href":"http:\/\/pullmonkey.com\/wp-json\/wp\/v2\/posts\/11\/revisions"}],"wp:attachment":[{"href":"http:\/\/pullmonkey.com\/wp-json\/wp\/v2\/media?parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pullmonkey.com\/wp-json\/wp\/v2\/categories?post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pullmonkey.com\/wp-json\/wp\/v2\/tags?post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}} | | | | | | | | | | | | | |