Skip to content
RED SAG Skills
hardStudy question · answer published in CSS interview questions, so no pointshtml-cssbox-model

Child margin pushes the parent down

A hero section has a background colour. Its first child h1 has margin-top: 40px, but the gap appears above the coloured section instead of inside it. Why?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions