+ 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
1 Respuesta
+ 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