Home >Web Front-end >CSS Tutorial >How Can I Add Vertical Spacing Between Paragraphs in CSS Without Using `` Tags?
How to Create Vertical Spacing Between Paragraphs Using CSS
To achieve vertical spacing between subparagraphs without using HTML
tags, a CSS-only solution can be implemented. Here's how:
br { display: block; }
br { margin: 10px 0; }
line-height:22px; /* Adjust as desired */
Note: This solution may not be fully cross-browser compatible.
Alternatives:
br { content: " "; }
This option is more reliable in terms of cross-browser compatibility.
The above is the detailed content of How Can I Add Vertical Spacing Between Paragraphs in CSS Without Using `` Tags?. For more information, please follow other related articles on the PHP Chinese website!