News for hackers. Stuff that matters.
Re:Tailwind Is a Leaky Abstraction by amrocha on Tuesday November 29, 2022 @04:42PM (#33793744)
"Good idea, but importantly only applies to flex and grid layout, not paragraph-like blocks of content."

What does this mean? What's the difference between the two?

Re:Tailwind Is a Leaky Abstraction by eurasiantiger on Tuesday November 29, 2022 @06:11PM (#33794705)
Layout is made of container blocks, such as main, sidebar, header, footer.

Container blocks contain other container blocks or content blocks, but never both at the same time.

Content blocks are paragraph-like content and may contain blocks (headings, media) and inline content (leading and body text, captions).

Example hierarchy: layout > main content area > hero element > positioned container > content block > heading