Problem Statement
What is margin collapsing in CSS?
Explanation
Margin collapsing occurs when the top and bottom margins of two adjacent elements combine into a single margin equal to the larger of the two. It usually happens in vertical stacking and helps maintain consistent spacing without doubling the gap.
Code Solution
SolutionRead Only
p + p { margin-top:20px; }