+ 1
Opacity
How do i represent 30% opacity with css?
3 Antworten
+ 1
<!--please try 😊-->
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<style>
#div1{
height:100px;
width:100px;
background:red;
opacity:1;
}
#div2{
height:100px;
width:100px;
background:red;
opacity:0.3;
}
</style>
</head>
<body>
<div id="div1"></div><br/>
<div id="div2"></div>
</body>
</html>
- 1
hi Kingsley Asibor
ocacity : .3;
https://www.w3schools.com/cssref/css3_pr_opacity.asp
maybe next time try googling it before asking