Skip to content

CSS Typography

@font-face

Problem with underlining

  • underline usually means a link

Magic spacing at the bottom

Line height

The minimum recommended value is 1.5.

![[image-20221026153823856.png]]

How to make it wrap?

  • white-space: normal;

word-wrap vs white-space property

word-wrap got renamed to overflow-wrap

choose whether to break words to the next line

white-space

whether to not go to wrap text or not

Word break vs overflow wrap

Word break has logic for asian characters

Overflow wrap knows about words whereas word break will just cut off words at the end of the container


Last update: 2022-11-04