How do I simulate a hover with a touch in touch enabled browsers?
Posted
by Rich Bradshaw
on Stack Overflow
See other posts from Stack Overflow
or by Rich Bradshaw
Published on 2010-05-17T18:27:32Z
Indexed on
2010/05/17
18:30 UTC
Read the original article
Hit count: 264
With some HTML like this:
<p>Some Text</p>
Then some CSS like this:
p {
color:black;
}
p:hover {
color:red;
}
How can I allow a long touch on a touch enabled device to replicate hover? I can change markup/use JS etc, but can't think of an easy way to do this.
© Stack Overflow or respective owner