Why does my floated box ignore the clear property I set on it?
Clear only affects elements in normal flow. If the element itself is floated, clear has no effect, so the layout doesn't change (see render_steps 4).
💡 Clear works only on non-floated block elements to push them below floats.
Why doesn't margin: auto center my element?
Margin auto centers only block elements with a set width. Inline elements ignore horizontal margins (see render_step 2).
💡 Make sure the element is block-level and has a width for margin auto centering.
Why does using float cause my container to collapse in height?
Floated elements are removed from normal flow, so their container may have zero height unless cleared or a clearfix is used.
💡 Use modern layout methods like Flexbox/Grid or clearfix to contain floats.