
- CSS Tutorial
- CSS - Home
- CSS - Introduction
- CSS - Syntax
- CSS - Inclusion
- CSS - Measurement Units
- CSS - Colors
- CSS - Backgrounds
- CSS - Fonts
- CSS - Text
- CSS - Images
- CSS - Links
- CSS - Tables
- CSS - Borders
- CSS - Margins
- CSS - Lists
- CSS - Padding
- CSS - Cursors
- CSS - Outlines
- CSS - Dimension
- CSS - Scrollbars
- CSS Advanced
- CSS - Visibility
- CSS - Positioning
- CSS - Layers
- CSS - Pseudo Classes
- CSS - Pseudo Elements
- CSS - @ Rules
- CSS - Text Effects
- CSS - Media Types
- CSS - Paged Media
- CSS - Aural Media
- CSS - Printing
- CSS - Layouts
- CSS - Validations
- CSS3 Tutorial
- CSS3 - Tutorial
- CSS3 - Rounded Corner
- CSS3 - Border Images
- CSS3 - Multi Background
- CSS3 - Color
- CSS3 - Gradients
- CSS3 - Shadow
- CSS3 - Text
- CSS3 - Web font
- CSS3 - 2d transform
- CSS3 - 3d transform
- CSS3 - Animation
- CSS3 - Multi columns
- CSS3 - User Interface
- CSS3 - Box Sizing
- CSS Responsive
- CSS - Responsive Web Design
- CSS References
- CSS - Questions and Answers
- CSS - Quick Guide
- CSS - References
- CSS - Color References
- CSS - Web browser References
- CSS - Web safe fonts
- CSS - Units
- CSS - Animation
- CSS Resources
- CSS - Useful Resources
- CSS - Discussion
Setting Spaces between Letters with CSS letter-spacing Property
Using the CSS letter-spacing property, we can specify the amount of space between letters of text.
Example
The following examples illustrate CSS letter-spacing property.
<!DOCTYPE html> <html> <head> <style> p:first-of-type { margin: 3%; padding: 3%; background-color: seagreen; color: white; letter-spacing: 2em; font-size: 2em; text-align: center; } </style> </head> <body> <p>BOOM</p> <p>BOOM</p> </body> </html>
Output
This will produce the following result −
Example
<!DOCTYPE html> <html> <head> <style> div { display: flex; margin: 3%; padding: 3%; border: 23px ridge navy; } p { margin: 3%; background-color: navajowhite; letter-spacing: 12px; font-size: 1.2em; text-align: center; } </style> </head> <body> <div> <p>BOOM</p> <p>abcdefghijklmnop-qrstuvwxyz</p> </div> </body> </html>
Output
This will produce the following result −
- Related Articles
- Usage of letter-spacing property in CSS
- Perform Animation on CSS letter-spacing property
- Letter Spacing in CSS
- Letter Spacing using CSS
- Managing Spacing Between Words with CSS wordspacing Property
- Styling First-Letters with CSS ::first-letter
- Animate CSS word-spacing property
- Animate CSS border-spacing property
- c# Put spaces between words starting with capital letters
- Usage of CSS border-spacing property
- Setting the spacing between grouped bar plots in Matplotlib
- Usage of word-spacing property in CSS
- Setting Color Property in CSS
- MySQL update query to remove spaces between letters?
- Word Spacing Working with CSS

Advertisements