media query min and max width in css - Search
About 678,000 results
Open links in new tab
    Kizdar net | Kizdar net | Кыздар Нет
    Upvotes461Top Answeredited Apr 30, 2021 at 9:02

    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 here for older browsers.
    I tend to go for a 600px - 960px width max but using percentages
    */
    @media only screen and (min-width: 960px) {
    /* styles for browsers larger than 960px; */
    }
    @media only screen and (min-width: 1440px) {
    /* styles for browsers larger than 1440px; */
    }
    @media only screen and (min-width: 2000px) {
    Content Under CC-BY-SA license
    Was this helpful?

    See results from:

     
  1. css - @Media min-width & max-width - Stack Overflow

     
  2. CSS Media Queries - Examples - W3Schools

    WEBLearn how to use media queries to create responsive web design for different devices and screen sizes. See examples of changing background color, menu, columns, font size, orientation and more with min and max

  3. Responsive Web Design - Media Queries - W3Schools

  4. Using media queries - CSS: Cascading Style Sheets | MDN

  5. CSS Media Queries Guide

    WEBAug 12, 2024 · Learn how to use media queries to modify the appearance and behavior of a website or app based on device, browser or system conditions. Find out how to use min-width and max-width to target

  6. CSS Media Queries - W3Schools

  7. People also ask
  8. Beginner's guide to media queries - Learn web development | MDN

  9. @media - CSS: Cascading Style Sheets | MDN - MDN Web Docs

  10. CSS Media Queries & Using Available Space - CSS …

    WEBJul 6, 2010 · Learn how to use CSS media queries to apply different styles depending on browser window size. See examples of how to change the layout, padding, background, content and more with min and max

  11. CSS media queries: max-width OR max-height - Stack Overflow

  12. Media Query CSS Example – Max and Min Screen …

    WEBOct 25, 2021 · Learn how to use media queries in CSS to apply styles based on the browser's width, height, or screen resolution. See code examples for max and min screen widths and how to use logical …

  13. The difference between min-width vs max-width in CSS media …

  14. How to Set Width Ranges for Your CSS Media Queries

  15. CSS @media Rule - W3Schools

  16. The New CSS Media Query Range Syntax

  17. CSS media queries - CSS: Cascading Style Sheets | MDN - MDN …

  18. Media Queries in CSS – Min-Width and Max-Width - CoderJony

  19. CSS Media Queries - max-width or max-height - GeeksforGeeks

  20. CSS | 响应式布局之媒体查询(media-query)详解 - CSDN博客

  21. What are the rules for CSS media query overlap?

  22. Some results have been removed