1/* Sur les écrans, quand la largeur de la fenêtre fait au maximum 1280px */
2@media screen and (max-width: 1280px)
3
4/* Sur tous types d'écran, quand la largeur de la fenêtre est comprise entre 1024px et 1280px */
5@media all and (min-width: 1024px) and (max-width: 1280px)
6
7/* Sur les téléviseurs */
8@media tv
9
10/* Sur tous types d'écrans orientés verticalement */
11@media all and (orientation: portrait)
12
1<style type="text/css">
2 /* default styles here for older browsers.
3 I tend to go for a 600px - 960px width max but using percentages
4 */
5 @media only screen and (min-width: 960px) {
6 /* styles for browsers larger than 960px; */
7 }
8 @media only screen and (min-width: 1440px) {
9 /* styles for browsers larger than 1440px; */
10 }
11 @media only screen and (min-width: 2000px) {
12 /* for sumo sized (mac) screens */
13 }
14 @media only screen and (max-device-width: 480px) {
15 /* styles for mobile browsers smaller than 480px; (iPhone) */
16 }
17 @media only screen and (device-width: 768px) {
18 /* default iPad screens */
19 }
20 /* different techniques for iPad screening */
21 @media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:portrait) {
22 /* For portrait layouts only */
23 }
24
25 @media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape) {
26 /* For landscape layouts only */
27 }
28</style>
1@media only screen and (min-width: 1000px) {
2 /* place here CSS for when the screen is more than 1000px wide */
3 .card {
4 width: 50%;
5 }
6}
1/* When the width is between 600px and 900px OR above 1100px */
2@media screen and (min-width: 600px) and (max-width: 900px), (min-width: 1100px) {
3 div.example {...}
4}
1@media (max-height : 800px){ /* from 0 to 800 px max height applies */
2 p{
3 font-size:10px
4 }
5}