Would it be beneficial to include clearfix
in every div
element to avoid container collapse issues?
Or is it more practical to apply it only to specific classes, like so?
<div class="container">
Additional div elements...
</div>
.container::after {
clear: both;
content: "";
display: table;
}