Why did they name those props `justify-content` and `align-items` instead of `main-axis-arrangement` and `cross-axis-alignment` which makes more sense?
Either Google has shifted _so much_ focus to getting an LLM to tell you about very real Encanto 2 spoilers that its search capabilities have atrophied, or my surprise at there not already being a Tailwind plugin for this is justified: const plugin = require('tailwindcss/plugin') const aliasFlexboxAlignment = plugin(function({ addUtilities }) { addUtilities({ '.cross-axis-baseline': { 'align-items': 'baseline' }, '.cr…
Show HN: Struggle with CSS Flexbox? This Playground Is for You
41–50 of 120 posts
Re: Show HN: Struggle with CSS Flexbox? This Playground Is for You
#42Why did they name those props `justify-content` and `align-items` instead of `main-axis-arrangement` and `cross-axis-alignment` which makes more sense?
There is probably some explanation, but in general, I find many CSS properties confusing and unintuitive: `color`, `text-align`, `position: absolute` vs `position: fixed` (absolute is still technically relative!), etc.
Absolute takes the element out of the flow while relative maintains it in the flow.
Re: Show HN: Struggle with CSS Flexbox? This Playground Is for You
#43I never struggle with flexbox itself. But getting a flexbox right in which the content overflows is always a mystery to me. If anyone has a guide or spec how overflow rules apply in CSS, please share.
Re: Show HN: Struggle with CSS Flexbox? This Playground Is for You
#44I wonder if there is a set of interesting CSS challenges, with well written solutions and explanations, to help practice CSS layouts. And maybe debugging challenges -- why doesn't this code snippet give me the layout that I want? ChatGPT has been very helpful when it comes to debugging CSS issues (not always correct but mostly in the right direction), still, I always want to get a deeper understanding of how CSS work…
Re: Show HN: Struggle with CSS Flexbox? This Playground Is for You
#45Re: Show HN: Struggle with CSS Flexbox? This Playground Is for You
#46Re: Show HN: Struggle with CSS Flexbox? This Playground Is for You
#47Re: Show HN: Struggle with CSS Flexbox? This Playground Is for You
#48Earlier quoted context omitted.
Either Google has shifted _so much_ focus to getting an LLM to tell you about very real Encanto 2 spoilers that its search capabilities have atrophied, or my surprise at there not already being a Tailwind plugin for this is justified: const plugin = require('tailwindcss/plugin') const aliasFlexboxAlignment = plugin(function({ addUtilities }) { addUtilities({ '.cross-axis-baseline': { 'align-items': 'baseline' }, '.cr…
Tailwind sure is a blight upon frontend maintainability.
Re: Show HN: Struggle with CSS Flexbox? This Playground Is for You
#49Re: Show HN: Struggle with CSS Flexbox? This Playground Is for You
#50Another one: https://flexboxcss.com