How to reduce space in html code

how to reduce space in html code

You can also specify the line height using the pixel size. Browsers ignore extra spacing. Not entirely sure what you mean.

Write in HTML: Paragraphs and Spacing

The css property that handles this is named line-height. As a rule of thumb, always try to use either of the unit less values percentage or number. Treat my content as plain text, not as HTML. There's hope! This is another paragraph, even though it's on the same line. PaulOB 2014-08-30 20: Search within: If you come from the word processor world, this behavior can be startling.

how to reduce space in html code

The paragraphs are a single line, but the word processor wraps them. Rate this:.

How to remove spaces between html elements (when margin is set to 0)

Share Pin Email. It might also be a special requirement, for example the lines needs to separated more than usual for emphasis. PaulOB 2014-09-04 19: Hot Network Questions. The line spacing or line height is the vertical height between lines of text in a rendered html page.

how to change line spacing or line height in html

Don't run screaming back to your word processor. Even with that change, the caption and the text leaves much too much empty space.....

how to reduce space in html code

BTW - you didn't change browsers or change your default font during the past week, did you?