When designing for Retina displays, the CSS property ________ can be used to provide different image resolutions based on the device's screen density.
- image-resolution
- image-quality
- device-pixel-ratio
- resolution-density
The correct option is device-pixel-ratio. This property allows specifying different styles based on the device's pixel ratio, enabling better image quality on high-density screens like Retina displays.
Loading...
Related Quiz
- In what scenario might the !important rule be considered bad practice?
- Which property in CSS is used to set the width of the content area of an element?
- You have an element inside a container. The container has a font-size of 20px. If you set the child element's font-size to 1.5em, what will be its computed font-size?
- In a multi-column layout, which CSS property is used to control the gap between columns?
- How can you include a custom font in your webpage using CSS?