The w3-clear class makes a parent element contain its floated children.
Compare the parent borders below. Only the second parent includes w3-clear.
The second parent border surrounds both floating boxes.