CSS background color transparency

Need to pick a color but with a little bit of transparency? No hassle, CSS3 is happily available for you to pursue the task of making the web a nicer looking place.

Here’s the CSS code to give your div a half transparent background color:

background-color: rgba(255,0,255,0.5);

 

Change 0.5 from 0 to 1 to get your desired transparency level.

Change 255,0,255 to match your desired color code in RGB.  

Voila!

Post Author: Tom Pai