CSS | letter-spacing Property
The letter-spacing property in CSS is used to set the spacing behavior between text characters i.e increasing or decreasing the space between characters in a text.
Syntax:
letter-spacing: normal|length|initial|inherit;
Property values:
- normal: The normal letter spacing for the current font i.e no extra space between characters. This is the default value.
Syntax:letter-spacing: normal;
Example:
<!DOCTYPE html><html><head><title>CSS letter-spacing Property</title><style>p {letter-spacing: normal;}</style></head><bodystyle="text-align: center;"><h1style="color:green;">GeeksforGeeks</h1><h2>CSS letter-spacing Property</h2><p>This paragraph has letter-spacing: normal;</p></body></html>chevron_rightfilter_noneOutput:
- length: This mode specifies extra inter-character space in addition to the default space between characters. Negative values are also allowed.
Syntax:
letter-spacing: length;
Example:
<!DOCTYPE html><html><head><title>CSS letter-spacing Property</title><style>p {letter-spacing: 5px;}</style></head><bodystyle="text-align: center;"><h1style="color:green;">GeeksforGeeks</h1><h2>CSS letter-spacing Property</h2><p>This paragraph has letter-spacing: 5px;</p></body></html>chevron_rightfilter_noneOutput:
- initial: This mode sets this property to its default value.
Syntax:letter-spacing: initial;
Supported Browsers: The browser supported by letter-spacing property are listed below:
- Google Chrome 1.0
- Internet Explorer 4.0
- Firefox 1.0
- Opera 3.5
- Apple Safari 1.0
Recommended Posts:
- HTML | DOM Style letterSpacing Property
- CSS | transition-property Property
- CSS | top Property
- CSS | right Property
- CSS | nav-right property
- CSS | nav-down property
- CSS | nav-up property
- CSS | all Property
- CSS | nav-index property
- CSS | transform Property
- CSS | animation-name Property
- CSS | border-right Property
- CSS | z-index Property
- CSS | direction Property
- CSS | padding-right Property
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



