โ† All CSS Flashcard Decks

Responsive Design & Media Queries Flashcards

7 cards from real CSS practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 Responsive Design & Media Queries flashcards as text
  1. Which value of the CSS 'display' property is commonly used for responsive two-dimensional layouts?

    Answer: grid

    CSS Grid handles rows and columns for two-dimensional responsive layouts.

  2. What does the 'fr' unit represent in CSS Grid?

    Answer: A fraction of available free space

    The fr unit distributes a fraction of the remaining free space in the grid.

  3. Which function creates responsive grid columns that wrap automatically without media queries?

    Answer: repeat(auto-fit, minmax(200px, 1fr))

    auto-fit with minmax lets columns flow and resize without explicit breakpoints.

  4. What does the CSS 'clamp()' function let you do for responsive sizing?

    Answer: Set a value with a minimum, preferred, and maximum

    clamp(min, preferred, max) produces a fluid value bounded by min and max.

  5. Which property enables fluid typography that scales with the viewport?

    Answer: font-size with vw units

    Using vw (or clamp with vw) makes font-size scale with viewport width.

  6. What is a 'breakpoint' in responsive design?

    Answer: A viewport width where the layout changes via media queries

    A breakpoint is a defined screen width at which styles adapt.

  7. Which CSS property prevents images from overflowing their container on small screens?

    Answer: max-width: 100%

    Setting max-width: 100% keeps images within their parent's width.