+ 2

Adding transparency to blocks

Hi friends! How i can add transparency to white blocks? https://code.sololearn.com/WQeOjFx66n1F/#css

27th Apr 2018, 8:27 AM
Arthur P
Arthur P - avatar
4 Respostas
+ 8
i assume you refer to the div elements with class="section" you can add opacity: 0.8; /* lower this value for more transperancy */ to .section { .... }
27th Apr 2018, 8:34 AM
Burey
Burey - avatar
+ 5
You can add transparency with css property named "opacity" #block { opacity: 0.7; } opacity value ranges from 0 to 1.
27th Apr 2018, 8:32 AM
Rhythm Khandelwal
+ 1
thanx all
27th Apr 2018, 8:36 AM
Arthur P
Arthur P - avatar
+ 1
- For set transparent or semi-transparent bg use CSS background-color background-color: transparent; background-color:rgba(255,255,255, 0.6); Latter set bg color as semi-transparent white with alpha to 60% - for set complete block use CSS opacity: opacity: 0.6; This set global opacity for the element (not only background)
27th Apr 2018, 8:38 AM
KrOW
KrOW - avatar