I wrote a sample code to try media queries in css...
Here is the code:
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: green;
}
@media only screen and (min-device-width: 374px) and (max-device-width: 376px) {
body {
background-color: blue;
}
#img {
background-color: blue;
}
button {
margin: auto;
}
}
</style>
</head>
<body>
<p>Media queries are simple filters that can be applied to CSS styles. They make it easy to change styles based on the characteristics of the device rendering the content, including the display type, width, height, orientation and even resolution.</p>
<button>Click me!</button>
<image src='Promo_2-2.jpg' id='img' alt='image'></image>
</body>
</html>
but media queries aren't working. Where am I wrong?