Ask coding questions

← Back to all posts
Why won't the button change when I edit the css?
LedipLedip (1)

When I try to do anything to the buttons nothing happens and I am so confused. I was able to change everything else but the buttons just refuse. Thanks in advance!

ryanbrwr (33)

You either have to give the button a class, or call it directly in the css file, here you are doing neither. An example of giving a button a class would be btn1.className = "homeButton". Then in the css you can call .homeButton. Hope this helps!

LedipLedip (1)

Nevermind I forgot a period