Apologies if my question seems redundant, I was having trouble finding the right search terms.
Let's discuss a scenario with a parent <div>
containing two inline-block children, each with a width of 50%
. If we don't apply overflow: hidden
to the parent and float: left
to the children, they won't align in a single row within the parent element.
But why is this the case? Why doesn't 50% + 50% equal one full row? What's the significance of using float in this context?