I am trying to change CSS on my page based on the min-height and min-width of the browser, so I am using this:
@media (min-height: 500px), (min-width: 580px) {
/* CSS stuff */
}
But for some reason, this doesn't work. I can check for min-height and max-width (or vice versa) or for max-height and max-width at the same time, but checking for both min values doesn't seem to work.
I should specify this more: I want the browser to act if a min-height or a min-width becomes true. Using the and-operator will only work if both criteria are true.
Am I doing something wrong?
.foo, .bar { color: red }
– cimmanon