How can I ensure that my block container element only displays the content of block elements, cutting off any floated elements that are taller than the parent container?
Applying overflow: hidden seemed like a simple solution, but it created a new block formatting context, causing the parent to use the height of the floated elements instead of the block elements. As a result, nothing actually gets hidden.
I'm looking for a more reliable solution than just setting a fixed height and hoping for the best. Plus, I'd prefer not to resort to using JavaScript. Any suggestions on how to achieve this goal?