media querycss code example
Example 1: css media queries
@media only screen and (max-width: 1200px){
}
@media only screen and (max-width: 600px){
}
@media only screen and (max-width: 425px){
}
Example 2: media query
@media only screen and (max-width: 600px) {}
@media only screen and (min-width: 600px) {}
@media only screen and (min-width: 768px) {}
@media only screen and (min-width: 992px) {}
@media only screen and (min-width: 1200px) {}
Example 3: media queries
@media only screen and (max-width: 1200px){
}
@media only screen and (max-width: 600px){
}
@media only screen and (max-width: 425px){
}
Example 4: media query methods
1. @media print
{
p
{
font-family: georgia,montserrat;
}
}
2. <link rel="stylesheet" media="screen"
href="/css/screen_version.css">
3. @import "screenstyles.css" screen;