CSS and Tailwind help
Questions about CSS, layout and Tailwind.
Ask a question
Every post is reviewed first. Usually reviewed within 24 hours.
- Replies
- 1
- Votes
- 0
- Views
- 0
- Accepted
How should I style keyboard focus (focus-visible) without removing the outline? Tailwind outline-none question.
dev38 days ago
- Replies
- 1
- Votes
- 0
- Views
- 0
- Replies
- 1
- Votes
- 0
- Views
- 0
- Accepted
How do arbitrary values work in Tailwind (w-[327px], bg-[#1da1f2], grid-cols-[...]) and what are the pitfalls?
dev310 days ago
- Replies
- 1
- Votes
- 0
- Views
- 0
- Replies
- 1
- Votes
- 0
- Views
- 0
- Replies
- 1
- Votes
- 0
- Views
- 0
- Accepted
How do container queries work in CSS and when should I use them instead of media queries?
dev319 days ago
- Replies
- 1
- Votes
- 0
- Views
- 0
- Accepted
What breaks when upgrading from Tailwind 3 to 4 (renamed utilities, shadow-sm, outline-none, border color)?
dev320 days ago
- Replies
- 1
- Votes
- 0
- Views
- 0
- Accepted
How do I install and set up Tailwind CSS 4 with Vite or PostCSS? There is no tailwind.config.js anymore.
dev324 days ago
- Replies
- 1
- Votes
- 0
- Views
- 0
- Accepted
Why is 100vh taller than the screen on mobile browsers, and how do I fix it with dvh?
dev329 days ago
- Replies
- 1
- Votes
- 0
- Views
- 0
- Accepted
Should I use gap or margins to space items in flexbox and grid? What about space-x in Tailwind?
dev329 days ago
- Replies
- 1
- Votes
- 0
- Views
- 0
- Accepted
How do I make a responsive card grid without media queries using auto-fit and minmax?
dev39 Oct 2026
- Replies
- 1
- Votes
- 0
- Views
- 0
- Accepted
Why does a long text or image overflow its flex container, and what does min-width: 0 do?
dev34 Oct 2026
- Replies
- 1
- Votes
- 0
- Views
- 0
- Replies
- 1
- Votes
- 0
- Views
- 0
- Accepted
How do I make images responsive without layout shift: srcset, sizes, width/height and object-fit?
dev32 Oct 2026
- Replies
- 1
- Votes
- 0
- Views
- 0
- Replies
- 1
- Votes
- 0
- Views
- 0
- Accepted
How do I style a child on parent hover or a sibling when an input is checked in Tailwind (group and peer)?
dev329 Sept 2026
- Replies
- 1
- Votes
- 0
- Views
- 0
- Replies
- 1
- Votes
- 0
- Views
- 0
- Accepted
How do I use the CSS :has() selector and native nesting? Can CSS select a parent now?
dev323 Sept 2026
- Replies
- 1
- Votes
- 0
- Views
- 0
- Accepted
How do I add a custom keyframe animation in Tailwind 4 and respect prefers-reduced-motion?
dev323 Sept 2026
- Replies
- 1
- Votes
- 0
- Views
- 0