1@media screen and (min-width: 769px) {
2 /* STYLES HERE */
3}
4
5@media screen and (min-device-width: 481px) and (max-device-width: 768px) {
6 /* STYLES HERE */
7}
8
9@media only screen and (max-device-width: 480px) {
10 /* STYLES HERE */
11}
12
1@media only screen and (max-width: 600px) {
2 body {
3 background-color: lightblue;
4 }
5}
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 (max-width: 1000px) {
2 /* place here CSS for when the screen is less than 1000px wide */
3 .card {
4 width: 100%;
5 }
6}
1@media (max-height : 800px){ /* from 0 to 800 px max height applies */
2 p{
3 font-size:10px
4 }
5}