🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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 →
  1. Q1. In a flex row, which property spreads items horizontally with space between them?
  2. Q2. Which property vertically centres items in a flex ROW?
  3. Q3. What does grid-template-columns: 1fr 2fr create?
  4. Q4. Which position value keeps an element on screen while you scroll the whole page?
  5. Q5. Which tool is best for a full page layout with header, sidebar, main and footer?
  6. Q6. In a flex container with flex-direction: column, which property moves items along the vertical axis?
  7. Q7. Your flex row of course cards overflows on a phone. Which property lets the cards move to the next line?
  8. Q8. What is the difference between Flexbox and Grid?
  9. Q9. A badge uses position: absolute; top: 0; right: 0;. It should sit in the corner of its card. What must the card have?
  10. Q10. Which position value makes a header scroll normally until it reaches the top, then stick there?