CSS Opacity

In CSS, the opacity property controls the transparency level of an element. It defines how opaque or transparent an element is, where 0 represents full transparency and 1 represents full opacity.


Syntax:

opacity : 0 - 1;
Opacity : 0.1
Opacity : 0.3
Opacity : 0.5
Opacity : 1
Example
div {
background-color: #50ffd2;
border: 1px solid;
opacity : 0.3;
}

Try it yourself


Whereisstuff is simple learing platform for beginer to advance level to improve there skills in technologies.we will provide all material free of cost.you can write a code in runkit workspace and we provide some extrac features also, you agree to have read and accepted our terms of use, cookie and privacy policy.
© Copyright 2024 www.whereisstuff.com. All rights reserved. Developed by whereisstuff Tech.