1

I want to create a rule that will fire styles if the device double width is bigger then device height height < width * 2. Is it possible to write such logical equations in media queries?

@media only screen and (height < width * 2) {}

  • Does this answer your question? [Media Queries: How to target desktop, tablet, and mobile?](https://stackoverflow.com/questions/6370690/media-queries-how-to-target-desktop-tablet-and-mobile) – Fabian S. Nov 03 '21 at 12:22

1 Answers1

3

Have you tried using @media screen and (min-aspect-ratio: 2/1)?