← All topics
Quiz: Flexbox and Grid: questions with answers
10 questions, each with the answer and a short explanation.
Take the timed quiz + get a certificate →- Q1. In a flex row, which property spreads items horizontally with space between them?
- Q2. Which property vertically centres items in a flex ROW?
- Q3. What does grid-template-columns: 1fr 2fr create?
- Q4. Which position value keeps an element on screen while you scroll the whole page?
- Q5. Which tool is best for a full page layout with header, sidebar, main and footer?
- Q6. In a flex container with flex-direction: column, which property moves items along the vertical axis?
- Q7. Your flex row of course cards overflows on a phone. Which property lets the cards move to the next line?
- Q8. What is the difference between Flexbox and Grid?
- Q9. A badge uses position: absolute; top: 0; right: 0;. It should sit in the corner of its card. What must the card have?
- Q10. Which position value makes a header scroll normally until it reaches the top, then stick there?