Currently Empty: ₹0.00
CSS Letter Spacing
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
🔤 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
| Property | Controls | Example |
|---|---|---|
letter-spacing | Space between individual characters. | H E L L O |
word-spacing | Space 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-spacingwithword-spacing. - Using negative spacing so aggressively that letters overlap.
- Applying excessive spacing to small-screen layouts.
- Forgetting to test typography on mobile devices.
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:
-
Create a heading with
letter-spacing: 2px;. -
Try
letter-spacing: 5px;. -
Create tight text using
-1px. -
Create a heading using
0.15em. -
Compare
normal, positive and negative values. - Create a navigation menu using letter spacing.
- Create a professional “Enroll Now” button.
📚 Quick Reference
| Value | Effect | Example |
|---|---|---|
normal | Uses normal character spacing. | letter-spacing: normal; |
2px | Adds 2 pixels between characters. | letter-spacing: 2px; |
5px | Adds wider character spacing. | letter-spacing: 5px; |
-1px | Reduces character spacing. | letter-spacing: -1px; |
.15em | Relative 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.
-
normaluses the browser’s normal character spacing. -
Relative units such as
emcan be useful for scalable typography. -
letter-spacingis different fromword-spacing. - Always prioritize readability when adjusting spacing.
SNCEC PORTAL
Student & Website Links
Quick access to student services, courses, learning resources and SNCEC information.
Student Login
Access your student account
Student Registration
Create your student account
Student Dashboard
Manage your learning activities
Courses
Explore our job-oriented courses
Instructor Registration
Join us as an instructor
Our Team
Meet our professional team
About Us
Learn more about SNCEC
Contact Us
Get in touch with our team
Mock Tests & Quizzes
Practice and test your knowledge
Student Zone
Access student services and resources
Student Zone →Learning Portal
Access online learning resources
Open Portal →Computer Shop
Computers, accessories & IT products
SNCEC Official Website
Shree Narayan Computers & Education Center



