InterviewSolution
Saved Bookmarks
| 1. |
How to write media queries for a device with aspect ratio 16/9? |
|
Answer» The aspect ratio is DEFINED as the ratio of WIDTH media feature to the ratio of height media features W:H. And the aspect ratio 16/9 is 42:32. The below Media query allows to TARGET the media query BASED on device-aspect-ratio which is 16/9. @media screen and (device-aspect-ratio: 16/9) { /* Your CODE here */ } |
|