# Solve unknown gap between elements in Flexbox with HTML5.

HTMLWeb DevelopmentFront End Technology

Unknown gaps between elements in flexbox are due to margin collapsing of the header to the bar division. To resolve this −

• Either Margin is reset to 0 for header or Border is added to the bar.
.bar {
}