🎯
Case 3
The badge that won't centre
🎫 Client ticket
The 'Sign up' badge is supposed to sit dead-centre of the purple banner. Instead it's stuck in the top-left corner. The developer insists they already added the centering lines.
HTML
CSS
✅ Fixed! Case closed.
You found the faulty line and corrected it — exactly what real debugging feels like.
Why it broke:
justify-content and align-items have no effect unless the element is actually a flex (or grid) container. Adding display: flex to .banner activates them, and the badge snaps to the centre. The centering lines were correct all along — the container just wasn't flex.