How to change the space between different lines in a paragraph | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

How to change the space between different lines in a paragraph

for example - <p>This is an example of my question please answer if you know<p> .... how to change the distance between the first line and the second line (I am not talking about word or letter spacing,the spacing between lines of of a paragraph )

6th Jan 2017, 7:52 AM
Utkαrsh
Utkαrsh - avatar
6 Answers
+ 3
use css line-height for example line-height:50px; in div or body
6th Jan 2017, 8:50 AM
ASNM
ASNM - avatar
+ 7
What Ken said, or use as many <br/> tags as you want lines between.
6th Jan 2017, 8:48 AM
Tamra
Tamra - avatar
+ 6
You can use <br/> for a line break in the same paragraph. No space will be put between lines. Ex: <p>Here's my question.<br/>Can you answer it?</p> Result: Here's my question. Can you answer it? Or, put the second line in another paragraph. It adds an extra space between paragraphs. Ex: <p>Here's my question.</p> <p>Can you answer it?</p> Result: Here's my question. Can you answer it?
6th Jan 2017, 8:42 AM
Tamra
Tamra - avatar
+ 4
@Ahmed AI/malaji Thanks your answer worked
6th Jan 2017, 8:54 AM
Utkαrsh
Utkαrsh - avatar
+ 3
@tamra I'm not talking about line break ,after line break the distance between the two lines ( here's my question <......this part...........> Can you answer it )
6th Jan 2017, 8:45 AM
Utkαrsh
Utkαrsh - avatar
+ 2
Change line height, border, or margin.
6th Jan 2017, 8:47 AM
Dao
Dao - avatar