Question:

How can I make line spacing in a HTML page (make an empty line) ?

by Guest34228  |  earlier

0 LIKES UnLike

How can I make line spacing in a HTML page (make an empty line) ?

and show to control Font size

 Tags:

   Report

4 ANSWERS


  1. There are a number of ways but it depends on exactly what you're trying to accomplish. A simple solution could be to...

    ...insert a paragraph...

    <p>& nbsp; </p>

    ... or insert two breaks...

    < b r />< b r />

    ... you could also just adjust margin, padding, and/or line-height in your CSS to give you the look you want.

    EDIT: The break tags are spaced out because Yahoo treats them as real breaks. Just noticed it screwed up the paragraph too.


  2. <br>

    this tag will make everything after this on the the following line. putting two of these together will result in a blank line

  3. <BR /> Gives you a break or line space

    To change the font you probably want to use CSS and a DIV but you can also just use:

    <span style="font-size:10pt">Text Here</span>

  4. For a line break that gives a space above/below:

    <p> & nbsp ; (without the spaces)</p>

    A <br> just breaks to new line.  Add as many as needed for more spacing between top/bottom content.  Instead of controlling line spacing with lots of <br>s, use:

    <p style="margin: 2% 0;"> & nbsp ; (without the spaces)</p>

    Set percents to amount you want spaced.

    To control font size for the whole page, use style tags between the head tags:

    <style type="text/css">

    body { font-size: 1em; }

    </style>

    You can add a lot more font styling to this to pick font family, font style, font weight, etc..

    To control specific font size for text:

    <p> This <span style="font-size: 1em;">word</span> is 1em size, while this <span style="font-size: 2em;">word</span> is 2em in size.</p>

    This styles the whole paragraph to a font size:

    <p style="font-size: 1em;">This whole paragraph is 1em in size.</p>

    Ron

Question Stats

Latest activity: earlier.
This question has 4 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.