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!



Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Продолжайте изучать
тесты по HTML & CSS
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты