The third specification of the Cascading Style Sheets (CSS) style sheet language, CSS 3 provides support for media queries, which can adjust the display of information in a browser based on screen resolution, e.g. smartphone screen vs. computer screen, the width of the browser viewport, etc. This is done through the use of "@media, which can be used in a style sheet or a style element included in the <head> section of the HTML code.
Two parameters that can be used with @media are shown below:
max-width | The maximum width of the display area, such as a browser window |
min-width | The minimum width of the display area, such as a browser window |
[ More Info ]