How to Decrease Space Between Lines in HTML
In HTML, line spaces can be created in two ways. The HTML line break, or "br," tag is used to create line spaces within or between separate paragraphs. The HTML paragraph, or "p," tag is used to create slightly larger line spaces for in-text paragraph separation. If there is too much space between lines in your HTML document, you can decrease the excess spacing by removing a few of the line space tags.
Instructions
-
-
1
Open your HTML document in an HTML-editing application and find the area of text in the HTML that has too many line spaces. If necessary, compare the text in the code view to the text in the design view to see where that is.
-
2
Click and drag to select one or <p> tag in the affected area of the HTML code and delete the tag. View the page with the design view again to see if the line spacing decreased enough.
-
-
3
Repeat Step 2 as many times as necessary. Once the line spacing has decreased the amount you want, save and close your HTML document and and re-upload it to your Web server, if applicable.
-
1