Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Enterprise
Expertise: Beginner
Jun 7, 2000



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Manually Adjust Leading in HTML Text

Do you have problems with the spacing that HTML line breaks and paragraph tags give? Or have you ever wanted leading that was in-between the two or just a little more than what you get with the paragraph tag? Heres a way to do it.

The paragraph tag responds to the font tag and the size attribute in the font tag, say "+1" or "+2." Simply place your paragraph tag between the open and close font tags like this:

<font size="+1"><P></font>(Your text here...)
Now changing the size attribute will adjust your line spacing to whatever your leading needs are.
Manoj Singh
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date