HTML CSS examples for CSS:Color
Use Opacity and color together
<html> <head> <style> #m1 {background-color:rgb(255,0,0);opacity:0.6;} #m2 {background-color:rgb(0,255,0);opacity:0.6;} #m3 {background-color:rgb(0,0,255);opacity:0.6;} </style> </head><!-- ww w .ja v a2 s . c o m--> <body> <p>HSLA colors:</p> <p id="m1">Red</p> <p id="m2">Green</p> <p id="m3">Blue</p> </body> </html>