Answers for "change color when button is clicked"

CSS
2

css button click color

button{
  background-color:yellow;
}

button:hover{
  background-color:orange;
}

button:focus{
  background-color:red;
}
Posted by: Guest on June-11-2021
0

change the button color on click

button:active{
  background-color:green;
}
Posted by: Guest on August-16-2021
2

html change button color

.button {
	background-color: #A62773; /*Color Code*/
}
Posted by: Guest on May-22-2021

Code answers related to "change color when button is clicked"

Browse Popular Code Answers by Language