You can usually avoid needing something like this by putting `overflow: auto` on the parent element of the floaty stuff.