In my current project, I'm looking to eliminate hover effects specifically on touch screen devices. My approach involves utilizing
@media handheld { /* non-hover styles here */ }
by copying and pasting all CSS properties in my file that include :hover
, then removing those hover effects.
For example:
/* desktop */
a.my_element {
color : #ff0000;
}
a.my_element:hover {
color : #000000;
}
/* handheld devices */
@media handheld {
a.my_element:hover {
}
}
Do you think my reasoning is sound? Will this method effectively achieve the desired outcome?