Skip to content

CSS Transparency Settings for All Browsers

css-tricks.com
13 pointsmogston5 comments
On HN

Comments

How is this news? $(this).css("opacity", 0);

[Admittedly, this is helpful if yr trying to style w/o JS, but it's not exactly a new technique -- as evidenced by the publish date.]

Junking up your CSS rules with hacks for Netscape Navigator and Safari 1.0? No thanks.

It's one line that adds that functionality. One line that shouldn't really have any additional overhead. Hardly seems like a giant glob of obfuscating junk to me.

apparently, IE doesn't respond to filter. You'll need this:

-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"

Yes, that's the new IE8 version. This article is double out of date, both the original (2007) post and the update.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.