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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *