2

I was cleaning up some legacy CSS, and found out several usages of the @media only all query without any other conditions, which left me puzzled.

Is there a reason I'm not seeing to use a media query like this instead of no media query at all?

Raibaz
  • 9,280
  • 10
  • 44
  • 65
  • Alternative duplicate, depending on what your actual question is: [What is the difference between “screen” and “only screen” in media queries?](http://stackoverflow.com/questions/8549529/what-is-the-difference-between-screen-and-only-screen-in-media-queries) – BoltClock Jun 30 '16 at 06:39

1 Answers1

1

It's a hack that allows a query to be applied only in some old browsers (e.g. IE8 and below). You can find more info more about it here.

Community
  • 1
  • 1
Victor Marchuk
  • 13,045
  • 12
  • 43
  • 67