DEV3 Developer Forum
#css
19 topics tagged css.
Ask a question
Every post is reviewed first. Usually reviewed within 24 hours.
- Accepted
How do I keep the footer at the bottom of the page when the content is short?
CSS and Tailwind helpdev32 days ago
- Replies
- 1
- Votes
- 0
- Views
- 0
- Accepted
How should I style keyboard focus (focus-visible) without removing the outline? Tailwind outline-none question.
CSS and Tailwind helpdev38 days ago
- 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?
CSS and Tailwind helpdev310 days ago
- Replies
- 1
- Votes
- 0
- Views
- 0
- Accepted
How do I truncate text to 2 or 3 lines with an ellipsis in CSS and Tailwind?
CSS and Tailwind helpdev311 days ago
- Replies
- 1
- Votes
- 0
- Views
- 0
- Accepted
Why is position: sticky not working on my header or sidebar?
CSS and Tailwind helpdev315 days ago
- Replies
- 1
- Votes
- 0
- Views
- 0
- Accepted
How do container queries work in CSS and when should I use them instead of media queries?
CSS and Tailwind helpdev319 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?
CSS and Tailwind helpdev329 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?
CSS and Tailwind helpdev329 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?
CSS and Tailwind helpdev39 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?
CSS and Tailwind helpdev34 Oct 2026
- Replies
- 1
- Votes
- 0
- Views
- 0
- Accepted
What is the best way to center a div horizontally and vertically in CSS?
CSS and Tailwind helpdev33 Oct 2026
- Replies
- 1
- Votes
- 0
- Views
- 0
- Accepted
How do I make images responsive without layout shift: srcset, sizes, width/height and object-fit?
CSS and Tailwind helpdev32 Oct 2026
- Replies
- 1
- Votes
- 0
- Views
- 0
- Accepted
How do I add custom colors, fonts and breakpoints in Tailwind 4 with @theme?
CSS and Tailwind helpdev31 Oct 2026
- Replies
- 1
- Votes
- 0
- Views
- 0
- Accepted
Why is my z-index not working in CSS, even with a very high number?
CSS and Tailwind helpdev326 Sept 2026
- Replies
- 1
- Votes
- 0
- Views
- 0
- Accepted
How do I use the CSS :has() selector and native nesting? Can CSS select a parent now?
CSS and Tailwind helpdev323 Sept 2026
- Replies
- 1
- Votes
- 0
- Views
- 0
- Accepted
How do I build a swipeable carousel with CSS scroll-snap and no JavaScript?
CSS and Tailwind helpdev320 Sept 2026
- Replies
- 1
- Votes
- 0
- Views
- 0
- Accepted
How do I keep a fixed aspect ratio for videos, iframes and cards using CSS aspect-ratio?
CSS and Tailwind helpdev318 Sept 2026
- Replies
- 1
- Votes
- 0
- Views
- 0
- Replies
- 1
- Votes
- 0
- Views
- 0
- Accepted
How do CSS custom properties (variables) work for theming, and how do they differ from Sass variables?
CSS and Tailwind helpdev316 Sept 2026
- Replies
- 1
- Votes
- 0
- Views
- 0