+ 2

What's wrong with my code?

After doing some changes (CSS), two of my boxes disappeared. How many boxes can you see? Can you help me fix it ? https://code.sololearn.com/W9nGuhc6NWSl/?ref=app

26th Apr 2018, 4:55 AM
Hamsdino
Hamsdino - avatar
4 Respostas
+ 3
Remove the space in your css for box 2 "rgb ( " and box 4 "rgba (". background: rgb(0, 0, 255); background: rgba(0, 0, 255, 0.2);
26th Apr 2018, 5:08 AM
ChaoticDawg
ChaoticDawg - avatar
+ 8
The code is fine as you can observe Box1 and Box3 moving while another 2 boxes are too faint to be seen. Therefore just change it to darker colours and you're good to go! 😉 P/S: You're doing a good job by give credit to the original author and please keep it up! 👍
26th Apr 2018, 5:05 AM
Zephyr Koo
Zephyr Koo - avatar
+ 3
@ChaoticDawg : Thank you ! I can't believe I couldn't figure it out by myself haha
26th Apr 2018, 5:15 AM
Hamsdino
Hamsdino - avatar
+ 1
@Zephyr Koo : thank you for your answer! But the box 2 had full opacity but still didn't appear.
26th Apr 2018, 5:14 AM
Hamsdino
Hamsdino - avatar