Answers for "remove hover effect from mobile"

CSS
2

remove hover effect from mobile

/* REMOVE HOVER FROM MOBILE*/

@media (hover: hover) {
 /* Write the styling which you want WITH hover.*/
  .button2:hover{
	color: rgb(221, 25, 25);
  }
}
@media (hover: none) {
  /* Write the styling which you want WITHOUT hover.*/
  .button2:active{
	color: #735bc1;
  }
}
Posted by: Guest on June-11-2021

Browse Popular Code Answers by Language