In plain words
CSS sets how each part of a page looks, like colour, size and spacing, and layout rules such as flexbox and grid decide where each box sits.
Where you see it
In a Lovable project, the long className strings like "flex items-center gap-4 p-6" are Tailwind, a shorthand for CSS. Right-click any element, choose Inspect, and the Styles panel lists every rule touching it.
What goes wrong
- Only ever checking on a laptop
A layout that looks fine 1440 pixels wide can overflow on a phone, with text running off the right edge. Check the mobile view in DevTools before you ship.
- Fixed pixel widths
A card set to 600 pixels is wider than most phone screens. Use maximum widths and let things shrink.
<div className="w-[600px]"> - Piling on !important
When a style won't apply, the quick fix is !important, then another to beat the first. Ask why the rule is losing instead.
What to tell your agent
Quick check
Sign in to earn +10 XP for itOn phones, Chirp posts containing long links stretch past the edge of the screen. What's causing it?