See this code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

See this code

<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <div class="container"> <div class="ball"></div> <div class="ball"></div> <div class="ball"></div> <div class="ball"></div> <div class="ball"></div> <div class="ball"></div> <div class="ball"></div> </div> </body> </html>

22nd Oct 2017, 4:45 PM
Gourav Singh
Gourav Singh - avatar
1 Answer
+ 7
7 containers of the same class "ball". Here's what you could do: You could style all of them by div {} affecting all containers. or style them individually with div:nth-child(n){}
23rd Oct 2017, 1:16 AM
Glitched
Glitched - avatar