Sent by Daltonlp on 11 November 2003 22:10
It's not perfect, but it's close (no javascript, just a couple lines of
css hoodoo).
http://www.daltonlp.com/daltonlp.cgi?item_type=1&item_id=217
It takes advantage of the fact that IE *does* support alpha transparency
through its proprietary DXImageTransform filter.
The trick is basically this:
1. Set an element's background-image using IE's proprietary style stuff
(this will be ignored by every other browser)
2. Set the background image (again) in the standard
"background-image:url" way, but in a way where IE (and only IE) will
ignore it (otherwise, IE will overlap its correctly-behaving
"DXImageTransform" image with an incorrectly-displayed
"background-image:url").
Currently, I'm doing this by specifying a rule for a
selector[attribute], which IE doesn't support.
Unfortunately, Safari doesn't support css selector[attribute] either :(
It would be nice to have a css rule that's supported by both mozilla,
opera, and safari, but not IE.
- Lloyd Dalton
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/