Run ยป
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> .div_bg{ width: 400px; height: 50px; background: rgba(0, 151, 19, 0.1); } .opacity-40{ background: rgba(0, 151, 19, 0.4) !important; } .opacity-80{ background: rgba(0, 151, 19, 0.8) !important; } </style> </head> <body> <div class="div_bg"> Opacity 10% </div> <div class="div_bg opacity-40"> Opacity 40% </div> <div class="div_bg opacity-80"> Opacity 80% </div> </body> </html>