Seenthis
•
 
Identifiants personnels
  • [mot de passe oublié ?]

 

b_b

@b_b
http://blog.eliaz.fr
RSS: b_b
tous les messages de b_b
  • @b_b
    b_b @b_b PUBLIC DOMAIN 4/06/2026
    2
    @jeanmarie
    @cy_altern
    2

    #Media_Queries Range Syntax
    ▻https://ishadeed.com/article/range-syntax

    /* Before */
    .section {
      @media (min-width: 300px)  and (max-width: 500px) {
        /* styles for the card */
      }
    }
    
    /* After */
    .section {
      @media (300px <= width <= 500px) {
        /* styles for the card */
      }
    }

    #css

    b_b @b_b PUBLIC DOMAIN
    • @klaus
      klaus++ @klaus 4/06/2026

      Merci !

      Media queries are the backbone of responsive design. We use them to control how a design should change based on the viewport size. But the min-width and max-width syntax can be confusing, and in some cases, cause layout bugs that take time to spot.

      This article aims to convince you to use range queries, starting today.

      klaus++ @klaus
    • @jeanmarie
      jeanmarie @jeanmarie CC BY-NC-SA 5/06/2026

      Ah ça y est, c’est enfin utilisable ? Quelle bonne nouvelle, ça va enfin devenir lisible tout ça, quel progrès.

      ▻https://caniuse.com/?search=Media+query+range+syntax

      jeanmarie @jeanmarie CC BY-NC-SA
    Écrire un commentaire

thèmes

  • #css
  • #Media_Queries
Propriété intellectuelle Recommandations API