How can I reduce the space between two lines of text or two different paragraphs | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11

How can I reduce the space between two lines of text or two different paragraphs

5th Jun 2019, 9:15 AM
Kratika Soni
5 Answers
5th Jun 2019, 9:39 AM
777
777 - avatar
+ 4
For text: line-height: 2 For paragraph : margin-bottom : 20px
5th Jun 2019, 9:42 AM
ะžะปั ะŸะตั€ะตะฒะตั€ะทะตะฒะฐ
ะžะปั ะŸะตั€ะตะฒะตั€ะทะตะฒะฐ - avatar
0
For text:line-height: 2 For paragraph : margin-bottom : (use the distance you want in pixels)
6th Jun 2019, 7:05 AM
Prince Kay
Prince Kay - avatar
0
For different paragraphs you can use margin or padding, you will get the same result. Eg. margin-bottom: 20px or padding-bottom:20px (Note that this style should be added to the paragraph at the top alternatively it can be added to the paragraph at the bottom by implementing margin-top or padding-top
6th Jun 2019, 7:05 AM
Aminu Idris
Aminu Idris - avatar
- 2
it's up to you how you write the code.By the way I am not a web developer but I guess it's common sense
6th Jun 2019, 1:36 PM
Anuj Raghu
Anuj Raghu - avatar