CSS 2.1 Reference: letter-spacing PropertyCSS letter-spacing Property Syntax selector {letter-spacing: value;} value is specified by using a length or one of the following keywords: normal or inherit. Usage The letter-spacing property is used to control the spacing between text letters. If a ...
word-spacing : → Increase or decrease the space between words direction : → Sets the direction of the text Example 1 : Color We’re going to try to style our HTML document, so it will have a formatted text that we instructed it to use. we’re going to show you some value that ca...
<!DOCTYPE html> div { border: 1px solid gray; padding: 8px; } h1 { text-align: center; text-transform: uppercase; color: #4CAF50; } p { text-indent: 50px; text-align: justify; letter-spacing: 3px; } a { text-decoration: none; color: #008CBA; } text formatting Th...
Problem There is often a need to set the letter spacing of an element to a fraction of its font size to reproduce a given design, and have it propagate down as it should (like most text-related properties, letter-spacing is inherited). T...
To adjust the spacing between individual letters, you can use the letter-spacing property. This property sets the amount of space between each character in a text block. CSS: CodePen: Output: Word Spacing To adjust the spacing between words, you can use the word-spacing property. This proper...
Letter spacing is a handy tool in your CSS toolkit that lets you increase or decrease the space between letters. You can measure distance in pixels, ems, or points. I’ve often taken advantage of this cool feature to sprinkle a little elegance onto headings or untangle body text that’s ...
Theletter-spacingandword-spacingproperties allow you to set the spacing between letters and words in your text. You won't use these very often, but might find use for them to get a certain look, or to improve the legibility of a particularly dense font. They can take mostlength and size...
letter-spacing: set spacing between letters in an element. text-indent: indents text on elements. line-height: specifies line height in paragraphs. font-weight: set to bold, italic, 100 to 600 list-style: to remove bullets or numbers from list items. text-decoration: remove and text decorat...
The letter-spacing CSS property sets the horizontal spacing behavior between text characters. This value is added to the natural spacing between characters while rendering the text. Positive values of letter-spacing causes characters to spread farther ap
word-spacingIncreases or decreases the space between words in a text word-wrapAllows long, unbreakable words to be broken and wrap to the next line writing-modeSpecifies whether lines of text are laid out horizontally or vertically z-indexSets the stack order of a positioned element ...