Post your trick

Background Opacity to be set in CSS

Ever wondered how you could change the opacity of the background or adjust the alpha quantity for it here is a trick to do so :
e.g.If you want to set a background for body then
in the CSS this is what should follow

body
{background rgba(82,82,82,0.7)}

here ‘rgb’ is for the red,green,blue values respectively and ‘a’ is the alpha/opacity for the background


Post A Trick !

How does "Kodetricks" work?

We at kodeplay like to share knowledge. With Kodetricks, even you can join us. All you need to do is post a programming related trick if you have one or rate a trick if you like someone else's.



Find us on

Technology

Contact Us