Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
Added CSS device media queries snippets
Browse files Browse the repository at this point in the history
It's a contentious issue but I personally find it helpful to know what the usual breakpoints are for mobile, tablet and desktop devices. I also included a link to the CSS Tricks page where people can find device-specific media queries.
  • Loading branch information
thewhiteswan authored Oct 30, 2019
1 parent 74e998a commit 4ef1dec
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions source/snippets/css/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,26 @@ description: CSS Snippets
}
```

## Device breakpoints

It is impossible to create the perfect experience for every device on the market but this list of typical media queries can help you decide on the right break point for your content.

For device specific media queries check out this page on [CSS Tricks](https://css-tricks.com/snippets/css/media-queries-for-standard-devices/).

```
/* Small devices (mobile phones) */
@media only screen and (max-width: 600px) {...}
/* Medium devices (tablets) */
@media only screen and (min-width: 768px) {...}
/* Large devices (laptops/desktops) */
@media only screen and (min-width: 992px) {...}
/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {...}
```


0 comments on commit 4ef1dec

Please sign in to comment.