Skip to content

Comment on My favourite 3 lines of CSS

Comments

For me it would be:

border box, flex, the trick to make a square with ::before and content/padding 100%

you will love aspect-ratio: 1/1;

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.