How to add paragraph spacing in Google Docs

I’m using Google Docs for a project I’m working on right now, and I ran into a problem with spacing. There appears to be no way to get spacing between paragraphs. You can control spacing between lines, but that’s not the same thing. Actually, it’s quite easy. You just have to know how Google Docs works.

The root problem is that it’s not creating paragraphs when you press the [Enter] key. It’s just adding a
tag. If you get it to create paragraphs, you can edit the document’s CSS and fix the problem easily.

The trick to this is to explicitly format the text with the Normal Paragraph Text style. This is not the same as no formatting. The easiest way to do this is to press Ctrl+0 while your cursor is in the paragraph you want to format. After you do this, pressing [Enter] will actually do what you want – it will create a new paragraph.

Now that you’ve done that, you can add the following CSS with the Edit/Edit CSS menu:

p {
  margin: 1em 0 1em 0;
}

You should now see the desired spacing between paragraphs.


About The Author

Baron is the founder and CEO of VividCortex. He is the author of High Performance MySQL and many open-source tools for performance analysis, monitoring, and system administration. Baron contributes to various database communities such as Oracle, PostgreSQL, Redis and MongoDB.


Comments