All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

[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

    This reply has been reported for inappropriate content.


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

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed