Email or username:

Password:

Forgot your password?
Simon Willison

This is really neat from Terence Eden: you can use text-wrap: balance for icons as well as text shkspr.mobi/blog/2024/10/you-c

Inspired by this I put together an interactive prototype using it for text-based navigation items, seems to work well for that too!

Try the prototype here: tools.simonwillison.net/text-w

More notes: simonwillison.net/2024/Oct/20/

mastodon.social/@Edent/1133395

5 comments
George Lund

@simon the result on Firefox mobile is a slightly distressing amount of horizontal scroll for some reason, which rather spoils the effect!

Simon Willison

@georgelund aha, looks to me like that phone has a default screen width that's less than 400px wide. I've just pushed an update that includes a max-width: 100% that should fix that

George Lund

@simon well that worked. But CSS pixels are a mysterious beast, this is a Pixel 8a which definitely has a higher actual resolution than that!

Go Up