I want to write media query based on screen resolution. My screen resolution height is 768. I wrote media query for this as:
@media(min-height:768px) and (ma
You can define as like this.
@media screen and (max-width: 1600px) and (max-height: 900px){ //code here } @media screen and (max-width: 1600px) and (max-height: 1200px){ //code here }
Or avoid mentioning width
@media screen and (max-height: 1200px){ //code here }