- Clearfix method: Refer to the
overflow: hiddenmethod: Parent will establish a new block formatting context and expand to contains its floated children.
In large projects, having a utility
.clearfix class will be very helpful.
overflow: hidden might clip children if the children is taller than the parent and is not very ideal.