+ 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 Antwort
+ 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