There are 4 blocks, how many green ones?

<div class="first"></div>
<div class="second"></div>
<div class="third"></div>
<div class="fourth"></div>

div{width:50px;height:50px;}
.first{background: rgba(0,255,0,1);}
.second{background: rgba(255,0,0,1);}
.third{background: rgba(0,255,0,0);}
.fourth{background: rgba(0,0,255,1);}
Explanation
There will be only one green block.
The fact is that the fourth parameter of the rgba property is responsible for transparency, on this basis the third block will be transparent.

CSS3 Colors
Click here for more information!


Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
HTML & CSS quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes