Chapter quiz · CSS Layout

Test what you learned.

8 questions on CSS Layout. Pass 70% to clear the chapter.

← Review chapter lessons

Quiz

CSS Layout — Chapter Quiz

Eight questions on flex, grid, position, responsive.

0/ 8
  1. Question 1
    1

    To lay out three items in a row with equal spacing between them, the fastest tool is…

  2. Question 2
    2

    Grid is for two-dimensional layouts; flex is for one-dimensional.

  3. Question 3
    3

    Which position keeps an element pinned to the viewport during scroll?

  4. Question 4
    4

    What does grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) do?

  5. Question 5
    5

    Vertically center a flex item with…

  6. Question 6
    6

    On a mobile-first stylesheet, what does this apply at 1024px wide?

    .layout { display: block; }
    
    @media (min-width: 768px) {
      .layout {
        display: grid;
        grid-template-columns: 250px 1fr;
      }
    }
    
  7. Question 7
    7

    container-queries lets a component respond to its OWN size, not the viewport's.

  8. Question 8
    8

    To create a stacking context that contains its descendants' z-index values, use isolation: _________.

Pick an answer — instant feedback as you go.