Forums

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

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #41906
    modiophile
    Participant

    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?

    #120559
    TheDoc
    Member

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.