Select Chapter ❯
CSS Tutorial
- CSS Introduction
- CSS Syntax
- CSS Insert CSS
- CSS Backgrounds
- CSS Text
- CSS Dimensions
- CSS Border
- CSS Margin
- CSS Padding
- CSS Display
- CSS Positioning
- CSS Float
- CSS Pseudo-Class
- CSS Opacity
- CSS Media Types
CSS3 Tutorial
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 ❯