0

Why canÔÇÖt I see my game pieces on the grid?

https://code.sololearn.com/WIGYx83rvJhh/?ref=app I made sure they were children of their parents, they have a higher z-index, and have a color

3rd Jan 2022, 10:04 PM
Margaret Guzman
Margaret Guzman - avatar
2 Antworten
+ 4
window.onload = init; Just remove the parentheses ;) EDIT: You also want to set `backgroundColor`, not `color`. Even better would be, to `.setAttribute` a `class` for your game pieces, and set the rest of the styles in CSS.
3rd Jan 2022, 10:18 PM
Schindlabua
Schindlabua - avatar
0
I'll have to modify your code, I will improve it, then, I will post the link
4th Jan 2022, 8:27 AM
VCoder
VCoder - avatar