bpoiss
bpoiss

Reputation: 14003

Is there a CSS only solution to :hover on touchscreens?

I know there are many solutions with JS, but non of them work perfectly for me. Is there a solution with pure css?

Upvotes: 1

Views: 184

Answers (1)

bpoiss
bpoiss

Reputation: 14003

With the new Level 4 Media Queries, this issue seems like it’s solved for good.

@media(hover: hover) and (pointer: fine) {}

Upvotes: 2

Related Questions