All TalkersCode Topics

Follow TalkersCode On Social Media

devloprr.com - A Social Media Network for developers Join Now ➔

CSS Opacity

CSS Opacity property is used to make elements opaque, transparent, translucent by giving the value between 0.0 to 1.0.A lower value makes the element more transparent.The CSS opacity property is a part of the CSS3.


E9, Firefox, Chrome, Opera, and Safari use the property opacity for transparency.IE8 and earlier use filter:alpha(opacity=x). The x can take a value from 0 - 100. A lower value makes the element more transparent.


Example of Opacity

div
{
opacity:0.5
filter: alpha(opacity=50); /* For IE8 and earlier */
}

You can also make elements transparent,translucent,opaque by setting the RGB value with opacity.


❮ PrevNext ❯