Which technique allows CSS styles to respond to viewport size in Responsive Web Design?

Prepare for the uCertify CIW Advanced HTML5 and CSS3 Specialist Exam. Dive into essential topics with flashcards and multiple-choice questions. Enhance your understanding with hints and explanations for each question. Pass your exam confidently!

Multiple Choice

Which technique allows CSS styles to respond to viewport size in Responsive Web Design?

Media queries are the tool that makes CSS respond to the size of the viewport. They let you define conditions—like a maximum or minimum width, height, orientation, or resolution—and apply different CSS rules when those conditions are met. This lets you create breakpoints so typography, layout, and components adapt as the screen grows or shrinks. For example, you can set a base style for large screens and add a media query for smaller screens to adjust font sizes or hide side panels. Flexbox helps with flexible layouts within a given set of rules but doesn’t automatically switch styles based on viewport size. CSS resets normalize browser defaults, and animations add motion, but neither by itself makes styles respond to viewport changes.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy