+ 1

Opacity

How do i represent 30% opacity with css?

4th Jun 2020, 2:16 AM
Kingsley Asibor
Kingsley Asibor - avatar
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>
4th Jun 2020, 9:09 AM
SAN
SAN - avatar
- 1
hi Kingsley Asibor ocacity : .3; https://www.w3schools.com/cssref/css3_pr_opacity.asp maybe next time try googling it before asking
4th Jun 2020, 2:33 AM
Ollie Q
Ollie Q - avatar