Grow your CSS skills. Land your dream job.

[Solved] Targeting only devices with media queries

  • # January 10, 2013 at 12:28 pm

    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?

    # January 10, 2013 at 1:31 pm

    When you write a media query, make sure to use `min-device-width` and `max-device-width` instead of `min-width` and `max-width`.

    # January 10, 2013 at 6:25 pm

    Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".