The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › [Solved] Targeting only devices with media queries
I have some CSS3 animated hover states on my website that don’t function so great on mobile (no surprise), how do I write a media query to target only devices?
When you write a media query, make sure to use `min-device-width` and `max-device-width` instead of `min-width` and `max-width`.