My second item div is not display in border and haven't backgroundColor. Thanks you sir. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

My second item div is not display in border and haven't backgroundColor. Thanks you sir.

display grid template columns item second in border. https://code.sololearn.com/WdBXYiWele7i/?ref=app

4th Aug 2021, 5:17 AM
Malick Diagne
Malick Diagne - avatar
1 Answer
+ 1
I think you accidentally typed an equals sign on this line: division.classList.add = ("grid-item"); Tip: you are having some duplicated code there, its better if you make a function that adds an item to the grid and then call it multiple times
4th Aug 2021, 6:09 AM
Giorgos