Skip to content

Typography Layout


Problem with underlining

  • underline usually means a link

Magic spacing at the bottom

Line height

The minimum recommended value is 1.5.


text-wrap: balance


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


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

Inline content separators

  • a0e93e7fc4e12ce32b05d5bb73386607.png
  • 916f43045c6b45731a9e9c76b6afd4ae.png
.container {
    overflow: hidden;
.entry {
    transform: translateX(-10px);
    padding-left: (10px);

.entry::before {
    top: 0;
    left: 0;
    width: 1px;

Last update: 2023-04-24