+ 2
Adding transparency to blocks
Hi friends! How i can add transparency to white blocks? https://code.sololearn.com/WQeOjFx66n1F/#css
4 Respuestas
+ 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 { .... }
+ 5
You can add transparency with css property named "opacity"
#block {
opacity: 0.7;
}
opacity value ranges from 0 to 1.
+ 1
thanx all
+ 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)