Tags
6K
back to homepage

8 news for css

May 2024

A flexbox trick to improve text wrapping

What flex properties to use to have several buttons with different textes always having the same size ? A very elegant answer without media queries, just using flex and min-width.

May 2024

Version 2.0 for Headless ui

Headless ui is an unstyled component library totally. It provides the logic and interactions, but let the developers style by themselves the components. It is a great tool to mix with tailwind to easily build design systems. Only compatible with React for now, but it should also supports vue soon.

February 2024

No Outer margin

The old debate margin vs padding. Why today you shouldn't use margin anymore and how to define your spacings only with padding (spoiler alert: border-box and gap will become your best friends)