I'm trying to negate the max-device-width
media query (the reason for this is I don't won't both (max-device-width: X)
and (min-device-width: X)
to fire if the device has precisely that width). Unfortunately, the not (min-or-max-some-width: X)
media queries never fire.
Here's a small fiddle. I expect two yellow lines on the desktop and two red lines on mobile. What I get is only one yellow line on the desktop (the last one) and only one red line on mobile (the first one).
What am I doing wrong?
all and
to the rest of your media queries. The addition ofnot
simply takes the entire media query and negates it. – Chump