CSS Is My Passion
Nobody has said anything yet. Be the first.
CSS layout help: Grid, Flexbox, responsive design and styling
Centering things. Grid that will not behave. The z-index war. Beautiful layouts and the three hours it took to nudge one pixel.
A reproduction beats a paragraph
CodePen, StackBlitz, anything runnable.
Bring the detail
Versions, error text, what you already tried. "It does not work" is not a question anyone can answer.
No drive-by self promotion
Share your own work when it answers the thread. A link with no context is a advert, and it gets removed.
Nobody has said anything yet. Be the first.
Showing 5 posts.
sorry po if basic question 😭 kakatapos lang ng shift ko kaya medyo lutang pa. practice project ko po is portfolio page na may project cards. gusto ko 3 columns sa laptop, 2 sa tablet, 1 sa phone. ginawa ko po 3 media queries pero ang dami tapos may weird na gap sa tablet size: .projects { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; } @media (max-width: 900px) { .projects { grid-template-columns:…
Accepted answer
i have this card grid and i read like 4 articles and still cant tell what the difference is .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; } auto-fill and auto-fit look EXACTLY the same on my screen. when does it actually change something? feels like im missing something obvious
I have a doubt that is making me crazy. In our checkout, when I navigate with the keyboard in Chrome and Firefox everything works: Tab goes to inputs, buttons and links, and the focus ring appears. In Safari on Mac, Tab jumps only between the text inputs. The buttons and links are completely skipped, like they don't exist. I thought it was my CSS, we have this: button:focus { outline: none; } button:focus-visible {…
hi all 🦉 1am here, kids are asleep, coffee #3. building a recipe site for practice and i have a recipe card, image on the left and text on the right. on small screens it stacks. i did it with a media query like teh tutorial said: .card { display: flex; flex-direction: column; gap: 1rem; } @media (min-width: 600px) { .card { flex-direction: row; } } on the main page it looks great. but i also show the same card in…
Accepted answer