Media Query Breakpoints 2021 Example Syntax


Example: media query breakpoints


// Best Practice suggests
// keep default style for smallest screen size (portrait mobile, below 576px)
// and then proceed in assending order with media query like below

// Small devices (landscape phones, 576px and above till next break point)
@media (min-width: 576px) { ... }

// Medium devices (tablets, 768px and above till next break point)
@media (min-width: 768px) { ... }

// Large devices (desktops, 992px and above till next break point)
@media (min-width: 992px) { ... }

// so on ...

Comments

Popular posts from this blog

530 Valid Hostname Is Expected When Setting Up IIS 10 For Multiple Sites

C Perror Example

Converting A String To Int In Groovy