Discussion
The CSS trick that finally made layout make sense
T
Tunde Okafor
· Oct 31, 2026 11:21 PM
I spent weeks fighting floats because an old tutorial taught them first. What changed things was giving every layout a temporary outline.
I add this while building:
* { outline: 1px solid red; }
Suddenly I could see which element was actually taking up space, where the padding was, and why a child was overflowing. Most of my layout problems were boxes being bigger than I thought, not Flexbox being complicated.
If you are stuck on a layout, try the outline before you rewrite anything.
1 Answer
Log in to post a reply.