Currently Empty: ₹0.00
CSS Text Transformation
CSS CODES & EXAMPLES
CSS Text Transformation
Learn how to change the capitalization of text using CSS. Transform text into uppercase, lowercase, capitalize or keep the original form without changing the HTML content.
01
What is Text Transformation?
Change the appearance of text with CSS
CSS text transformation allows you to control the capitalization
of text without modifying the original HTML text. The main CSS
property used for this purpose is text-transform.
Main Property:
text-transform
02
text-transform
The main CSS property
The text-transform property defines how the text
should be displayed in terms of capitalization.
text-transform.css
p {
text-transform: uppercase;
}welcome to css text transformation
03
text-transform: none
Keep the original text
The none value prevents text transformation and
displays the text normally.
none.css
p {
text-transform: none;
}Welcome To Shree Narayan Computers & Education Center
04
text-transform: uppercase
Convert all letters to uppercase
The uppercase value converts all letters to capital
letters.
uppercase.css
h2 {
text-transform: uppercase;
}computer education courses
05
text-transform: lowercase
Convert all letters to lowercase
The lowercase value converts all letters to small
letters.
lowercase.css
p {
text-transform: lowercase;
}LEARN COMPUTER APPLICATIONS
06
text-transform: capitalize
Capitalize the first letter of words
The capitalize value changes the first character
of each word to uppercase.
capitalize.css
p {
text-transform: capitalize;
}diploma in computer application
07
Text Transformation Comparison
Compare the common valuesuppercase
computer education center
lowercase
COMPUTER EDUCATION CENTER
capitalize
computer education center
08
Transformation with Headings
Professional heading stylesText transformation is commonly used for section headings, labels and category titles.
OUR COURSES
career focused computer education
Learn practical skills through structured computer courses designed for students and professionals.
heading-transform.css
.heading-label {
text-transform: uppercase;
}
.heading-title {
text-transform: capitalize;
}
09
Navigation Menu
Transform menu labelsNavigation menus often use uppercase or capitalized text to create a consistent professional appearance.
navigation.css
.navigation a {
text-transform: uppercase;
}
10
Buttons
Transform button labels
buttons.css
.btn-uppercase {
text-transform: uppercase;
}
.btn-capitalize {
text-transform: capitalize;
}
.btn-lowercase {
text-transform: lowercase;
}
11
Course Card Example
Practical education website designfeatured courseonline
diploma in computer application
Learn computer fundamentals, Microsoft Office, internet, digital services and practical computer applications.
₹2,999
view course
course-card.css
.course-label {
text-transform: uppercase;
}
.course-title {
text-transform: capitalize;
}
.course-button {
text-transform: uppercase;
}
12
Combining Text Properties
Use transformation with other CSS propertiesText transformation can be combined with font size, font weight, letter spacing, text decoration and other typography properties.
learning resources
computer education
Build practical digital skills for study, work and career growth.
combined.css
.label {
text-transform: uppercase;
letter-spacing: 2px;
}
.title {
text-transform: capitalize;
font-weight: 700;
}
.description {
text-transform: none;
}
13
Practical Example
Education portal categories
category
computer courses
category
computer courses
category
COMPUTER COURSES
14
Best Practices
Use text transformation correctly
✓ Use CSS for visual styling
Keep the original content meaningful and use CSS to control its visual capitalization.
✓ Use uppercase carefully
Large blocks of uppercase text can be harder to read. It works best for labels, buttons and short headings.
✓ Use capitalize for titles
Capitalize can be useful for course names, card titles and navigation labels.
✓ Keep accessibility in mind
CSS transformation changes presentation, not the underlying text content.
15
Practice Task
Test your CSS Text Transformation skills🎯 Your Challenge
Create a professional education website navigation and course
card using text-transform.
- Make navigation links uppercase.
- Make course titles capitalize each word.
- Make small category labels uppercase.
- Keep paragraph content unchanged.
- Use text transformation on buttons.
- Combine transformation with letter spacing.
16
CSS Text Transformation Live Runner
Experiment with different transformation valuesLIVE PREVIEW
17
Quick Reference
Important values at a glancetext-transform
Controls the capitalization of text.
none
Displays text without transformation.
uppercase
Converts letters to uppercase.
lowercase
Converts letters to lowercase.
capitalize
Capitalizes the first character of each word.



