WebCraft

TAG ยท text

Text handling in CSS

Ellipsis, line clamping, long words that will not break, drop caps and numbered headings. 7 elements, each rendered live with its source and the one thing that breaks it.

  1. A list marker you define yourself @counter-style
  2. Marking text without touching the DOM ::highlight()
  3. Numbering the browser keeps for you counters()
  4. The long word that will not bend overflow-wrap: anywhere
  5. An ellipsis is three declarations, not one text-overflow: ellipsis
  6. A drop cap the browser measures for you initial-letter
  7. Cut a paragraph to three lines -webkit-line-clamp