Opacity

Opacity level for an element.

Syntax
      opacity: value | inherit ;

value - From 0.0 (transparent) to 1.0 (opaque)
inherit - inherit from the parent element.

The default value is 1.0

Opacity sets the opacity for an element and all of its children, an alternative which sets the opacity value only for a single element is an RGBA color value.

Examples:
h1 { opacity: 0.5; }
.emw3class { opacity: 0.25; }

#emw3id { opacity: 0.8; }

Try it:

This is some sample text.
Using CSS to change the opacity will affect the text and any background images.

(CSS 3) Browser Support: All major browsers.

“I felt that it's best just to be as transparent as possible” ~ Rupert Murdoch

Related:

font-weight - Normal, bold, bolder.
visibility - Hide or show an element.


Copyright © 2013-2022 Emw3.com
Some rights reserved