In a media query, which feature is commonly used to detect the width of the viewport?
- device-width
- resolution
- screen-size
- viewport-width
The device-width feature is commonly used in media queries to detect the width of the viewport. It specifically targets the width of the output device, which is important for creating responsive designs that adapt to different screen sizes. By using device-width in media queries, you can apply different styles and layouts based on the device's screen width.
Loading...
Related Quiz
- Which CSS property is used to clip an element to a basic shape like a circle or ellipse?
- In Flexbox, which property is used to define how items are aligned along the main axis?
- How can you ensure that the animation effects persist after the animation completes its execution?
- You've noticed that your web fonts are causing a delay in page rendering. Which property can you adjust to control how these fonts are displayed during the load process?
- How can you use media queries to target devices with retina displays specifically?