Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 7
    @media screen and (max-width: 568px) and (max-height: 320px) {} - in my case this works correct Commented Sep 5, 2017 at 10:35
  • 14
    @nosensus, the comma implies an OR relationship, meaning either may be true for the rules to apply, as per the original question. The code you show is for an AND relationship in which both must be true for the rules to apply. Commented Sep 28, 2017 at 19:16
  • 2
    You are right. "AND" this is rule for both scale (height and width), because in some cases we need exactly such rule. Because you can have two devices for example 320x560 and 320x480 and device rotation will broke you make up. I mean "comma" and "AND" sign is have different means. Commented Sep 30, 2017 at 12:24