max width vs min media - Search
About 3,390,000 results
Open links in new tab
    Kizdar net | Kizdar net | Кыздар Нет
    Upvotes137edited Feb 12, 2015 at 1:30

    2 Part Answer

    Part 1: To answer "why people are using min-width over max-width?":

    It has to do with design flow. Typically, with min-width patterns, you're designing mobile-first. With max-width patterns, you're design desktop-first.

    Going mobile-first...

    body {
    /* default styles here,
    targets mobile first */
    }

    @media screen and (min-width:480px) {
    /* style changes when the screen gets larger */
    }

    @media screen and (min-width:800px) {
    /* And even larger */
    }

    Conversely, using max-width, is desktop-first then adds queries to make styles mobile-friendly

    Content Under CC-BY-SA license
    Was this helpful?
     
  1. css - Max-Width vs. Min-Width - Stack Overflow

     
  2. The difference between min-width vs max-width in …

    WEBJun 17, 2021 · The difference. In short, the main difference between the two is the condition when the styles will be applied: @media (min-width: 800px) { … } - for browser’s viewport width equal or wider than 800px; …

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

  4. Responsive Web Design - Media Queries - W3Schools

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

  6. CSS Media Queries Guide - CSS-Tricks

    WEBAug 12, 2024 · A mobile-first can usually be spotted by it’s use of min-width instead of max-width. If we start with min-width, we’re essentially saying, “hey, browser, start here and work up.” On the flip side, max-width is …

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

    WEBJul 25, 2024 · The width (and height) media features can be used as ranges, and therefore be prefixed with min- or max- to indicate that the given value is a minimum, or a maximum. For example, to make the …

  9. The New CSS Media Query Range Syntax - CSS-Tricks

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

  11. CSS @media Rule - W3Schools

  12. Media Queries Demystified | CSS Min-Width and Max …

    WEBNov 13, 2023 · What are CSS media queries? Learn to use the max-width and min-width properties to code responsive emails for different device screen sizes.

  13. CSS Properties – Max-width, Min-width, Max-height, and Min …

  14. Choosing between min-width and max-width media queries

  15. Media Queries: Width vs. Device Width - SitePoint

  16. The difference between CSS width, min-width, and max-width …

  17. CSS3 Media Queries - Examples - W3Schools

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

  19. max-width - CSS: Cascading Style Sheets | MDN - MDN Web Docs

  20. What Are The Best Width Ranges for Media Queries

  21. CSS Layout - width and max-width - W3Schools

  22. Should I use max-device-width or max-width? - Stack Overflow