Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape

CSS Letter Spacing

CSS Letter Spacing

CSS Letter Spacing – CSS Tutorial | Shree Narayan Computers & Education Center
CSS COURSE • LESSON

CSS Letter Spacing

Learn how to control the horizontal space between individual letters using the CSS letter-spacing property. Explore positive, negative, normal and responsive spacing with practical examples.

📘 What is CSS Letter Spacing?

The CSS letter-spacing property controls the amount of horizontal space between characters in text.

Increasing the value creates more space between letters, while a negative value brings the letters closer together.

In simple words: letter-spacing controls the distance between individual characters.

🧩 CSS Letter Spacing Syntax

selector {
    letter-spacing: value;
}

The value can be specified using CSS length units such as px, em, rem, etc. The special value normal can also be used.

⚪ Example 1: Normal Letter Spacing

The normal value uses the browser’s normal spacing between characters.

p {
    letter-spacing: normal;
}
Welcome to Shree Narayan Computers

↔️ Example 2: Positive Letter Spacing

A positive value adds extra space between characters.

h2 {
    letter-spacing: 2px;
}
SHREE NARAYAN COMPUTERS

📏 Example 3: 5px Letter Spacing

.title {
    letter-spacing: 5px;
}
CSS LETTER SPACING
Moderate positive spacing can work well for short headings, labels and navigation elements.

↔️ Example 4: Negative Letter Spacing

A negative value reduces the space between characters.

h1 {
    letter-spacing: -1px;
}
Modern Typography
See also  HTML Basic

🔤 Example 5: Using em

Relative units such as em can make letter spacing scale with the element’s font size.

.heading {
    letter-spacing: .15em;
}
PREMIUM EDUCATION

📐 Example 6: Large Letter Spacing

Very large spacing should be used carefully because it can make words difficult to read.

.title {
    letter-spacing: 10px;
}
SNCEC
Warning: Excessive letter spacing can reduce readability, especially in long paragraphs.

▶️ Live Comparison

Compare different letter-spacing values below.

Normal Spacing
Tight Spacing
Small Positive Spacing
Medium Spacing

🎯 Practical Example: Website Heading

Letter spacing is often useful for headings and short uppercase labels.

.section-title {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

Our Courses

🧭 Practical Example: Navigation Menu

.menu a {
    text-transform: uppercase;
    letter-spacing: 1px;
}
Small positive letter spacing can give navigation labels a clean and professional appearance.

🔘 Practical Example: Button

.button {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

🔍 Letter Spacing vs Word Spacing

PropertyControlsExample
letter-spacingSpace between individual characters.H E L L O
word-spacingSpace between words.Hello    World

💡 Practical Uses

🎯 Headings

Improve the visual appearance of short headings.

🧭 Navigation

Give menu labels a clean and consistent style.

🔘 Buttons

Improve the typography of short button labels.

🏷️ Labels

Create premium-looking uppercase labels and badges.

⚠️ Common Mistakes

  • Using very large spacing in long paragraphs.
  • Confusing letter-spacing with word-spacing.
  • Using negative spacing so aggressively that letters overlap.
  • Applying excessive spacing to small-screen layouts.
  • Forgetting to test typography on mobile devices.
See also  HTML Runner
Design Tip: Use letter spacing carefully. Small changes can create a significant difference in readability and visual hierarchy.

📝 Practice Exercises

Try these exercises in your HTML Runner:

  1. Create a heading with letter-spacing: 2px;.
  2. Try letter-spacing: 5px;.
  3. Create tight text using -1px.
  4. Create a heading using 0.15em.
  5. Compare normal, positive and negative values.
  6. Create a navigation menu using letter spacing.
  7. Create a professional “Enroll Now” button.

📚 Quick Reference

ValueEffectExample
normalUses normal character spacing.letter-spacing: normal;
2pxAdds 2 pixels between characters.letter-spacing: 2px;
5pxAdds wider character spacing.letter-spacing: 5px;
-1pxReduces character spacing.letter-spacing: -1px;
.15emRelative character spacing.letter-spacing: .15em;

🎓 Key Points to Remember

  • letter-spacing controls the space between individual characters.
  • Positive values increase spacing.
  • Negative values decrease spacing.
  • normal uses the browser’s normal character spacing.
  • Relative units such as em can be useful for scalable typography.
  • letter-spacing is different from word-spacing.
  • Always prioritize readability when adjusting spacing.

HTML Lists

  • 17/08/2026

HTML Links

  • 17/08/2026

CSS Flex Shrink

  • 19/08/2026

Leave a Reply

Your email address will not be published. Required fields are marked *