0
Web code
I don't know why I can't change the start button black https://sololearn.com/compiler-playground/WOq41056l0oN/?ref=app
8 Réponses
+ 2
the start button is a child of the .titleScreen div. It's gone with the div when you set the display to 'none' in the function startGame.
+ 1
On which line?
0
line 40
40 document.getElementById('titleScreen').style.display = 'none';
you did this to hide the first div.
the problem is your button is inside that div, so it gets hidden too.
you don't have any button on your gameScreen.
0
maybe you wanted something like this?
https://sololearn.com/compiler-playground/WPDTdr7x50AN/?ref=app
0
What I mean is I want the start button to be the colour black
0
But when I do it in css tab it doesn't work
0
Brian O'Connell
look at my code. I put my css in the css tab and it still works.
you can use the dark class on your button to make it black, or you could put the color:white; background-color: black; in your button css.
0
Thanks