Forum Moderators: open
.myClass{
margin:1em auto;
}
margin: 1em auto;. . . which just happens to be the default for a paragraph in all browsers since forever. But it only comes out to the equivalent of one blank line if you also stick with the default line-height of 1em, which is frankly unreadable. I normally use 1.2. (Line-height is one of the rare situations where you don't need to specify a unit for non-zero values; it assumes em if you don't say. Or maybe here it’s considered a multiplier, equivalent to 120%?)
p {
margin-bottom: 25px;
}
<p style="margin-bottom: 25px;">Content here</p> p.ex1 {
margin-bottom: 25px;
}Then in the markup, tag the paragraph like this:<p class="ex1">Content here</p>