This is my html file. on browser width 769 background color of the body is White. on 768 it changes to Green. on 767 I am expecting it to become Red but it still remains green. on 766 It becomes red. So my confusion is why does media query does not apply when screen size is exact 767.
Fiddle: https://jsfiddle.net/asifsomy/wtvknrja/3/show
@media only screen and (max-width: 768px) {
body {
background: green;
}
}
@media only screen and (max-width: 767px) {
body {
background: red;
}
}
<html lang="en">
<body>
</body>
</html>
