A web page has a multi-column layout using floats, but the developer wants to switch to a single-column layout on devices with a width less than 600px. What approach should they take using media queries?

  • Use a media query with aspect-ratio: 1/1
  • Use a media query with max-width: 600px
  • Use a media query with min-width: 600px
  • Use a media query with width: 600px
To switch to a single-column layout on devices with a width less than 600px, the developer should use a media query with 'max-width: 600px'. This ensures that the specified styles are applied only when the screen width is 600px or less.
Add your answer
Loading...

Leave a comment

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