sabato, febbraio 25, 2006

CSS Transparency for Internet Explorer (IE), Mozilla and Safari

Want to add transparency to a div or other element using styles? I’m always looking these up, and therfore thought it worthy of noting:

.opacitystyle {
filter:alpha(opacity=50); */ IE */
opacity: 0.5; /* Safari and Newer Firefox */
-moz-opacity:0.5; /* Firefox and Netscape */
}

A few other examples, I had bookmarked. I’m sure many examples abound on the net.