#HTML CSS BASIC HELP

1 messages · Page 1 of 1 (latest)

placid kite
#

First you going to give the button a class
HTML:

<button class="myButton">
Click here!
</button>

Then you going to make a css for that class

.myButton {
   
}

However you want to change it on hover so you have to add :hover

.myButton:hover {
    background-color: #000000
}
placid kite
#

You did background try to do background-color or just color

#

Hmm can you give me the html

#

Try not to give the button a class
&& just do button:hover

#

Not .button:hover