How to make a translucent background

How to make translucent background using css in an element? but is the content opaque too? Sorry for the bad english. Thanks.

+4
source share
1 answer

use rgba background.

background: rgba(0, 0, 0, 0.5); 

values ​​correspond to the intensity of red, the intensity of green, blue intensity

the decimal value is opacity, and it works from 0 to 1.

if you need to configure it without too much difficulty check: css3 maker

+14
source

Source: https://habr.com/ru/post/1500319/


All Articles