Pretty pretty

Chris Coyier Chris Coyier on

text-wrap: balanced; dropped first but text-wrap: pretty; wasn’t too far behind and they are both useful. The pretty value is now coming to Safari and Jen Simmons calls it “an unprecedented level of polish to typography on the web.” If you’ve already seen pretty and think of it as the thing that prevents short last lines in paragraphs, that’s old thinking now, so read up. That particular feature, if that’s all you want, is now text-wrap: avoid-short-last-lines; (not kidding). The pretty value does lots of different stuff to improve typography in subtle ways. Jen says:

… we want you to be able to use this CSS to make your text easier to read and softer on the eyes, to provide your users with better readability and accessibility. And simply, to make something beautiful.

If you’ve got Safari Technical Preview going, try the demo. I’ve seen one small bit of valid criticism.

Wanna be a better web typographer?

Frontend Masters logo

It was once famously said that the web is 95% typography. You can't be a web designer and ignore type! We have an in-depth course on web typography from Jason Pamental getting into things like responsive styles, variable fonts, font loading, and more.

7-Day Free Trial

Leave a Reply

Your email address will not be published. Required fields are marked *

Did you know?

Frontend Masters Donates to open source projects. $363,806 contributed to date.