1. Home
  2. Css
  3. Detect non touch devices
#css#media

This media query let's you target non touch devices. Check browser support before implementing.

<style>
@media (hover: hover) {
    .no-touch { /* ... */ }
    .hover-dropdown { /* ... */ }
}
</style>
copy
Full Css cheatsheet
Sitemap Git repository