To target high-resolution displays in a media query, the ________ feature is commonly used.
- resolution
- device-pixel-ratio
- screen-size
- aspect-ratio
The correct option is "device-pixel-ratio." This feature is commonly used in media queries to target high-resolution displays by specifying the ratio of physical pixels to CSS pixels on the device.
Loading...
Related Quiz
- If you want an animation to play forwards first, then reverse on alternate cycles, which value of animation-direction would you use?
- In CSS transitions, which property defines the property to which the transition effect should apply?
- The property ________ is used to control the horizontal and vertical alignment of an element's border box within its containing block.
- What would you use in SASS/SCSS to conditionally apply styles?
- Can a more specific CSS selector override a rule marked as !important?