Opacity
suggest changeSyntax
- opacity:
| inherit | initial | unset;
Remarks
0 and 1 are valid. Values below 0 or above 1 are clamped. If only the background should be translucent, set an alpha color instead of opacity, which also fades descendants:
background: rgba(255, 255, 255, 0.6);
Resources:
- MDN: https://developer.mozilla.org/en/docs/Web/CSS/opacity;
- W3C Transparency: the ‘opacity’ property: https://www.w3.org/TR/css3-color/#transparency
- Browser support: http://caniuse.com/#feat=css-opacity
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents