# [Tex/LaTex] Globally set Paragraph top and bottom margins

paragraphsspacing

I have the below code :

\documentclass[12pt]{book}
\usepackage{lipsum}

\begin{document}

\lipsum[1]
\lipsum[1]

\end{document}


I would like to be able to define the margins of new paragraphs. I am a web guy so I will give an example with CSS for what I am trying to do :

p{margin-top: 10px;margin-bottom: 5px;}


how can I apply that?

The relevant parameter is \parskip: a declaration such as
\setlength{\parskip}{15pt plus 1pt minus 2pt}