One option is creating a specific stylesheet for IE that uses IE-specific markup and styling. The other (one that I prefer) is a piece of JavaScript that, if it detects IE, walks the DOM looking for <img> elements with png references and programmatically replaces them with IE-specific markup without having to edit the source document manually. Just add
<script language="javascript"src="sleight.js"></script>
to your <head> element in the HTML.
The script is here: http://youngpup.net/demos/sleight/sleight.js
One major caveat though: it only works with IE 5.5 and above so your expected clients can't be predominantly IE 5.0. On the bright side, most other manufacturers' browsers work correctly with or without the script.
- Miles
Martin Lüthi wrote:
I generate a SVG and serialize it as PNG with transparent background. In Mozilla and Konqueror everything looks fine (also an Windows), but in IE
5.0 the background of the PNG is white. Is this a browser-specific problem?
Who can point me to a workaround?
--------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>