EduFlow
Modern CSS Mastery

Checkpoint: Layout That Holds Up

Five questions on this section. Answer all of them, then see your score and why each answer is right or wrong.

Question 1 of 5

A page is display: flex with a 16rem sidebar and a main with flex: 1. A wide data table inside main pushes the page into horizontal scrolling. What’s the targeted fix?

Question 2 of 5

A grid uses grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) with no gap in a 500px container. How many columns are there, and how wide?

Question 3 of 5

A speaker sign-up form has three fieldsets, each with label and input pairs. The labels should form one column of equal width across all fieldsets. The form is a two-column grid. What do you add to each fieldset?

Question 4 of 5

A session card sits in a 300px sidebar. Its layout switches with @container (width > 400px), and the sidebar is the size container. The browser window is 1400px wide. Which layout does the card get?

Question 5 of 5

What width does width: clamp(280px, 50%, 600px) produce inside a 400px-wide parent?

5 questions unanswered