Which media query applies styles only to viewports 768px wide or narrower?
Correct answer
A. @media (max-width: 768px)
13 views
A. @media (max-width: 768px)
13 views
max-width: 768px matches widths up to and including 768px, a common tablet and mobile breakpoint in responsive design. min-width is used for a mobile-first approach.
Asked in: NTS, Web Developer Interviews
Not sure why the answer is A? Ask here and get an explanation.