Currently Empty: ₹0.00
CSS Word Spacing
CSS Word Spacing
Learn how to control the horizontal space between words using the CSS word-spacing property. Explore normal, positive, negative and relative values with practical live examples.
📘 What is CSS Word Spacing?
The CSS word-spacing property controls the amount of horizontal space between words in text.
Unlike letter-spacing, which changes the space
between individual characters, word-spacing
changes the space between words.
In simple words:
word-spacing controls the distance between
separate words.🧩 CSS Word Spacing Syntax
selector {
word-spacing: value;
}
You can use values such as normal,
pixel values, em, rem and
other valid CSS length values.
⚪ Example 1: Normal Word Spacing
The normal value uses the browser’s
default spacing between words.
p {
word-spacing: normal;
}
Welcome to Shree Narayan Computers
📏 Example 2: 5px Word Spacing
A positive value increases the space between words.
p {
word-spacing: 5px;
}
Learn Computer Skills With Practical Training
📐 Example 3: 12px Word Spacing
.heading {
word-spacing: 12px;
}
PREMIUM COMPUTER EDUCATION
Moderate word spacing can be useful for short headings,
banners and special typography.
↔️ Example 4: Large Word Spacing
A larger value creates significant space between words.
.title {
word-spacing: 20px;
}
SHREE NARAYAN COMPUTERS
Design Tip:
Avoid excessive word spacing in normal paragraphs because
it can make the text harder to scan.
↔️ Example 5: Negative Word Spacing
Negative values reduce the space between words.
p {
word-spacing: -3px;
}
Modern Web Design With CSS
🔤 Example 6: Using em
Relative units such as em allow the spacing
to scale according to the font size.
.heading {
word-spacing: .5em;
}
PROFESSIONAL COMPUTER EDUCATION
▶️ Live Comparison
Compare different word-spacing values below.
Normal Word Spacing
Small Word Spacing
Medium Word Spacing
Negative Word Spacing
🔍 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 |
Remember:
Use
letter-spacing when you want to change
character spacing. Use word-spacing when you
want to change spacing between words.🎯 Practical Example: Section Heading
Word spacing can be combined with text transformation to create clean section headings.
.section-title {
text-transform: uppercase;
word-spacing: 8px;
font-weight: 700;
}Our Learning Courses
🔘 Practical Example: Button Text
.button {
text-transform: uppercase;
word-spacing: 3px;
font-weight: bold;
}📰 Practical Example: Article Text
Word spacing should normally remain subtle in paragraphs. The following example demonstrates a moderate value.
.article p {
word-spacing: 2px;
line-height: 1.8;
}Computer education helps students develop practical digital skills. Proper typography makes educational content easier to read and understand on different devices.
💡 Practical Uses
🎯 Headings
Add controlled spacing to short headings.
🏷️ Labels
Improve the appearance of short labels and badges.
📰 Articles
Apply subtle spacing to improve text presentation.
⚠️ Common Mistakes
-
Confusing
word-spacingwithletter-spacing. - Using extremely large spacing in paragraphs.
- Using negative values that cause words to overlap.
- Forgetting to test the design on mobile screens.
- Using word spacing when normal margins or layout spacing would be more appropriate.
Design Tip:
Typography should remain readable first. Use word spacing
primarily for controlled visual styling rather than large
layout gaps.
📝 Practice Exercises
Try these exercises in your HTML Runner:
-
Create a paragraph using
word-spacing: 5px;. -
Change the value to
10px. -
Try a negative value such as
-2px. -
Create a heading using
0.5em. -
Compare
letter-spacingandword-spacing. - Create a professional section heading using uppercase text and word spacing.
- Create an “Enroll Now” button with controlled word spacing.
📚 Quick Reference
| Value | Effect | Example |
|---|---|---|
normal | Uses normal word spacing. | word-spacing: normal; |
5px | Adds 5 pixels between words. | word-spacing: 5px; |
12px | Adds wider spacing between words. | word-spacing: 12px; |
-3px | Reduces spacing between words. | word-spacing: -3px; |
.5em | Uses relative word spacing. | word-spacing: .5em; |
🎓 Key Points to Remember
- word-spacing controls the space between words.
- Positive values increase word spacing.
- Negative values reduce word spacing.
-
normaluses the browser’s normal spacing. -
Relative units such as
emcan be used for scalable typography. -
word-spacingis different fromletter-spacing. - Always prioritize readability over decorative 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
All Courses List
View complete course catalog
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



