+ 1

Web code

I don't know why I can't change the start button black https://sololearn.com/compiler-playground/WOq41056l0oN/?ref=app

7th Jul 2025, 9:03 PM
Brian O'Connell
Brian O'Connell - avatar
10 Respuestas
+ 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.
7th Jul 2025, 10:25 PM
Bob_Li
Bob_Li - avatar
+ 1
On which line?
8th Jul 2025, 9:51 AM
Brian O'Connell
Brian O'Connell - avatar
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.
8th Jul 2025, 10:03 AM
Bob_Li
Bob_Li - avatar
8th Jul 2025, 10:08 AM
Bob_Li
Bob_Li - avatar
0
What I mean is I want the start button to be the colour black
8th Jul 2025, 10:56 AM
Brian O'Connell
Brian O'Connell - avatar
0
But when I do it in css tab it doesn't work
8th Jul 2025, 10:57 AM
Brian O'Connell
Brian O'Connell - avatar
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.
8th Jul 2025, 12:24 PM
Bob_Li
Bob_Li - avatar
0
Thanks
8th Jul 2025, 12:44 PM
Brian O'Connell
Brian O'Connell - avatar
0
Hello I m new here How a pic is added in for show
9th Jul 2025, 4:55 PM
Princess
Princess - avatar
0
????
9th Jul 2025, 5:43 PM
Brian O'Connell
Brian O'Connell - avatar