I have a question in regards to responsiveness design when it comes to heights, when developing for responsive design, is it better to use
@media (max-height: 2160px)
or
@media (min-height: 2160px)
I have a bunch of rules based on min-height in a css file, and I am thinking that using min-height is going to cause me issues, especially since I am using a 4kuhd tv as a monitor at the moment, and working downwards. I am also using jquery to set heights and widths as well, so everything is running into each other and somethings I have to leave in jquery's hands to set heights and widths
EDIT
@media (min-height: 768px) {
#Container {
width: calc(100% - 20px);
height: 96vh;
border: 1px solid black;
background-color: red;
}
}
@media (max-height: 1080px) {
#Container {
width: calc(100% - 20px);
height: 96vh;
border: 1px solid black;
background-color: purple;
}
}
@media (max-height: 2160px) {
#Container {
width: calc(100% - 20px);
height: 96vh;
border: 1px solid black;
background-color: hotpink;
}
}
When I leave my screen resolution at 3840x2160 then the background is hot pink, when I change the resolution down to 1920 x 1080, it still stays hot pink, if I drop it lower than 1920x1080 then it goes purple.
I don't understand why when I drop it down to 1920x1080 that it doesn't change to purple
EDIT 2
I think I figured out why this is not working, and please someone correct me if I wrong.. If I subtract 111 from those screensizes then everything works. But I have no idea why subtracting 111 from my screen resolution width works.