Wednesday, May 21, 2008

What To Put With Heart Shaped Pasta

Transparent images via CSS

can an image relatively easily and quickly be set transparency with the following CSS definition:


/ * images 50% use transparent * /
div # head a: hover img {
filter: alpha (opacity = 50);-moz-opacity: 0.50; opacity: 0.50;}



Here, the values following browser types:

Internet Explorer: filter: alpha (opacity = 50); be
here must enter a value from 0 to 100. 100 stands for complete transparency.

Mozilla browser (Firefox, etc.):-moz-opacity: 0.50;
(value between 0 and 1)

Miscellaneous browser: opacity: 0.50;
(value between 0 and 1)

0 comments:

Post a Comment