If suppose my device width is 800px, which media query will apply (execute)?
@media only screen and (min-width : 320px){
}
/* Extra Small Devices, Phones */
@media only screen and (min-width : 480px){
}
/* Small Devices, Tablets */
@media only screen and (min-width : 768px){
}
/* Medium Devices, Desktops */
@media only screen and (min-width : 992px){
}
/* Large Devices, Wide Screens */
@media only screen and (min-width : 1200px){
}
If i write the css for the device having screen size is between 768px to 991px and i declare it’s css in the media query
@media only screen and (min-width : 768px){
}
then first two media queries will also gets applied how to avoid this.
2
Answers
You can use this three media query for 800px of width
based on your option