How to control Text spacing and alignment with CSS

With CSS style you can take control of space across your text. Below are available spacing options in CSS
line-height
vertical-align
text-align
text-indent
white-space
word-spacing
letter-spacing

What is line-height property in CSS

CSS files can change line-height (distance from base line of letters of consecutive lines). Absolute sizes are used for defining line-height. Available Units are px (pixels), pt (points), pc (picas), mm (millimeters), cm (centimeters), in (inches), em
Syntax

selector { line-height: required line height followed by unit ;}


Example

p {line-height: 26px;}

What is vertical-align property of CSS

This CSS property controls vertical alignment of text in reference to other element. Available options are bottom, baseline, middle, sub, super, text-top, text-bottom, and top.
Syntax

selector { vertical-align: vertical-align_option;}

Define text-align property in CSS

This CSS property controls horizontal alignment of text (paragraph as whole). Available options are: left, center, right, or justify.
Syntax

selector { text-align: text-align_option;}

What is text-indent property and how to control it with CSS

This CSS property controls indentation (start position) paragraph. The indent can be given as Available Units are px (pixels), pt (points), pc (picas), mm (millimeters), cm (centimeters), in (inches), em.
Syntax

selector { text-indent: text-indent_followed by unit;}

Example
p{ text-indent: 2pt;}

Define word-spacing

CSS provided with line space control – to control space between words. The word-spacing can be given Units : px (pixels), pt (points), pc (picas), mm (millimeters), cm (centimeters), in (inches), em.

Syntax

selector { word-spacing: word-spacing_followed by unit;}

Define letter-spacing

Similar to line spacing and word-spacing is used to control space. The letter-spacing in CSS can be given Units : px (pixels), pt (points), pc (picas), mm (millimeters), cm (centimeters), in (inches), em.
Syntax

selector { letter-spacing: letter-spacing_option;}