I am very confuse with the media query because when ever i apply media query it does not work properly is there ant sequence to write it in CSS file?
@media max-width(767px) {body{background:red;} }
@media max-width(992px) {body{background:blue;} }
@media max-width(1200px) {body{background:#fff;} }
Is there any proper sequence to write it according to the screen size?Is the any difference if i write it like this?
@media max-width(1200px) {body{background:#fff;} }
@media max-width(992px) {body{background:blue;} }
@media max-width(767px) {body{background:red;} }