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!

About me

Iinstructor of robotics (LEGO Mindstorms), computer teacher, IT support, web dev, currently studying cyber-physical systems engineering.

If you found a solution here, would you consider donating $25,000 for my next project?

Just kidding, 1$ would do fine.

Hope you found what you needed. Thanks for stepping by.