I've found the best method is to write your default CSS for the older browsers, as older browsers (including IE 5.5, 6, 7 and 8) can't read @media. When I use @media, I use it like this: <style type="text/css"> /* default styles he
The @media rule has a 'media-condition' enclosed in it which takes the values of "max-width" or "max-height" or "min-width" or "min-height" which specify the maximum width or maximum height or minimum width
CSS media queries allow you to apply styles based on the characteristics of a device or the environment displaying the web page. CSS media queries are essential for creating responsive web pages.