๐ ๏ธ New Interactive Article: Balancing Text In CSS
I explored text balancing in CSS โ what it is, the problems it solves, how it works, and included plenty of examples and use cases. Happy balancing! โ๏ธ
https://ishadeed.com/article/balancing-text-css/
=> More informations about this toot | More toots from shadeed9@front-end.social
Just pushed an update that should make it better for mobile. Those are kind of changes that If I keep them before publishing the article, my OCD won't let me publish it till next year. ๐
=> More informations about this toot | More toots from shadeed9@front-end.social
@shadeed9 Excellent article, as always! I agree that pretty
is a little un-CSS-y as a keyword. Might have been better as text-wrap: balance-last
(or with space-separated keywords, e.g. text-wrap: balance [all | last]
?). I also like the idea of a ratioโฆ probably a little more complex to implement performantly, but for short text, it'd be a super useful tool!
=> More informations about this toot | More toots from chriskirknielsen@front-end.social
@shadeed9 Interesting! I feel like hyphenation is so closely related to line breaks it should have a part in there, too!
Thinking is there a way to add invisible newline breakpoints similar to ยญ hyphenation breakpoints?
=> More informations about this toot | More toots from djh@chaos.social
@shadeed9 The quality of this kind of blog post. ๐
=> More informations about this toot | More toots from benoit@ruby.social
@benoit thanks a lot! so glad to hear that :)
=> More informations about this toot | More toots from shadeed9@front-end.social This content has been proxied by September (ba2dc).Proxy Information
text/gemini