Typography· 16 of 16

16 of 16

Review wrapping in short descriptions

Try text-wrap: pretty on a caption or card description with an awkward ending. Browsers choose the details of the wrapping algorithm, so judge the result on the engines you support.

Do
Don’t

Dop.description { text-wrap: pretty }

Don’tp.description { text-wrap: wrap }

Before you ship

  • Does the closing phrase read naturally?
  • Can the description gain a line without losing its action?
  • Does ordinary wrapping still give a usable result?

Next category

Layout & spacing13 rulesJ