How do I change the text line spacing?

Updated: 01/24/2018 by Computer Hope

Changing the line spacing in Microsoft Word

To change the spacing in Microsoft Word, follow the steps below.

  1. Open Microsoft Word and the document you want to modify.
  2. Highlight the text you want to change or select all text.
  3. Right-click the selected text and select Format > Paragraph (or Paragraph, depending on your version of Word). In the Paragraph window (shown below), all line spacing can be adjusted in the spacing section.

Microsoft Word double space

Changing the line spacing in OpenOffice Writer

To change the line spacing in OpenOffice Writer, follow the steps below.

  1. Open OpenOffice Writer
  2. On the right side of the window, click the blue and green Properties box to show the properties of the page.
  3. Under Spacing, click the Increase Spacing button.

Changing the line spacing in a Google Docs Document

To change the line spacing in a Google Docs document, follow the steps below.

  1. Open the Google Docs document.
  2. Click Format and then Line Spacing.

Changing the lines spacing in HTML and CSS

To change the line spacing on a web page or an HTML page, create a line-height CSS rule similar to the example below.

p {
line-height: 1.7em;
}

Using the above CSS code either in your HTML or an external CSS will adjust the line-height to a height of 1.7em for all paragraph tags.

<p style="line-height: 3em">Text here example</p>

In the above HTML tag, style is only applied to the one paragraph with a line-height of 3em. Below is an example of a paragraph with a line-height of 3em.

Example of line-height of 3em on Computer Hope. Example of line-height of 3em on Computer Hope. Example of line-height of 3em on Computer Hope. Example of line-height of 3em on Computer Hope. Example of line-height of 3em on Computer Hope. Example of line-height of 3em on Computer Hope.