Information about cookies on this page

Our website uses cookies to ensure the functionality of the website, to collect and analyze information about the performance and usage of the website. Privacy Policy

  • Courses
    • Discord
    • Twitter
    • Linkedin
    • Facebook
    • Instagram
  • Pricing
  • English
  • Čeština
  • Deutsch
  • Русский
Sign inStart free
  • Courses
  • Pricing

Community

Sign in
  
  • Courses
    • Discord
    • Twitter
    • Linkedin
    • Facebook
    • Instagram
  • Pricing
  • English
  • Čeština
  • Deutsch
  • Русский
Sign inStart free
  • Courses
  • Pricing

Community

Sign in

Letter Spacing and Case

A popular look for small labels: tiny capital letters with a little extra space between them. Tiny capitals are easier to read when they aren't crowded:

Playful   Playful   Playful

You know uppercase from the previous lesson. These are all the classes for text-transform:

ClassCSS
uppercasetext-transform: uppercase
lowercasetext-transform: lowercase
capitalizetext-transform: capitalize
normal-casetext-transform: none

The space between letters (letter-spacing) is set by the tracking- classes; tracking is the printers' word for it:

Classletter-spacing
tracking-tighter-0.05em
tracking-tight-0.025em
tracking-normal0
tracking-wide0.025em
tracking-wider0.05em
tracking-widest0.1em

The unit em is like rem, but it is relative to the font size of the element itself: 1em is the element's own font size. So the space grows with the text: in 12-pixel text, tracking-wide adds 0.3 pixels after each letter, in 48-pixel text 1.2 pixels. Negative values move the letters closer together; big headings often look better with tracking-tight.

Instructions

  1. 1

    Add the classes text-xs and uppercase to the "Playful" badge.

  2. 2

    Add the class tracking-wide to the badge.

Back

10/12

  1. 1. The Color Palette
  2. 2. Shades
  3. 3. Quiz: Shades
  4. 4. Page Colors
  5. 5. Transparent Colors
  6. 6. Font Size
  7. 7. Font Weight
  8. 8. Quiz: Font Weight
  9. 9. Line Height and Alignment
  10. 10. Letter Spacing and Case
  11. 11. Font Family and Underline
  12. 12. Summary
Next

Try it yourself

Do this exercise right here in your browser. No account needed.