{"id":137,"date":"2004-05-11T23:30:00","date_gmt":"2004-05-11T23:30:00","guid":{"rendered":"http:\/\/www.shiromi.com\/cgi-bin\/blosxom.cgi\/net\/200405120830.html"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T16:00:00","slug":"transparent-png-with-ie","status":"publish","type":"post","link":"https:\/\/shiromi.com\/blog\/2004\/05\/11\/transparent-png-with-ie\/","title":{"rendered":"Transparent PNG with IE"},"content":{"rendered":"<p><img decoding=\"async\" class=\"left\" src=\"http:\/\/www.shiromi.com\/images\/diary\/20040512-stefan_full_rgba.png\" alt=\"png demonstrating transparency\" \/>Finally! Following recommendations of the <a href=\"http:\/\/www.w3c.org\">W3C<\/a>, I found an interesting <a href=\"http:\/\/homepage.ntlworld.com\/bobosola\/index.htm\">website<\/a> explaining a fix for the problem of transparent PNG showing a grey background in IE or Frontpage on Windows (IE on Mac supports PNG transparency!).<\/p>\n<p>There are several options, this one uses conditional comments in IE to run a javascript, which will enable the alpha channel in IE<\/p>\n<p>The solution is quite light and will allow me not to have different PNG files for IE and for other compliant browsers.<\/p>\n<p>When Microsoft finally decides to patch their browser, hopefully they will also think about supporting CSS properly!<\/p>\n<p>The picture above was found on the <a href=\"http:\/\/www.libpng.org\/pub\/png\/pngs.html\">libPNG website<\/a> and was created by <a href=\"http:\/\/members.chello.at\/stefan-schneider\/index.html\">Stefan Schneider<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Finally! Following recommendations of the W3C, I found an interesting website explaining a fix for the problem of transparent PNG showing a grey background in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-137","post","type-post","status-publish","format-standard","hentry","category-net"],"_links":{"self":[{"href":"https:\/\/shiromi.com\/blog\/wp-json\/wp\/v2\/posts\/137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shiromi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shiromi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shiromi.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shiromi.com\/blog\/wp-json\/wp\/v2\/comments?post=137"}],"version-history":[{"count":0,"href":"https:\/\/shiromi.com\/blog\/wp-json\/wp\/v2\/posts\/137\/revisions"}],"wp:attachment":[{"href":"https:\/\/shiromi.com\/blog\/wp-json\/wp\/v2\/media?parent=137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shiromi.com\/blog\/wp-json\/wp\/v2\/categories?post=137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shiromi.com\/blog\/wp-json\/wp\/v2\/tags?post=137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}