Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Senior Member
    Join Date
    Oct 2007
    Posts
    241
    Member #
    15910
    hello,
    I have two
    </br>
    </br>
    but i dont lke the spacing betwene two lines of text under each other. Th espace between two lines is too much. How can I reduce the space between two lines of text? I tried <p> but it is even worse, more space...I am trying to reduce spacing between two lines of text...more than one </br> but less than two </br>
    such as:
    line of text 1
    line of text 2
    so, how can I adjust the spacing between these two lines precisely as I like?

  2.  

  3. #2
    Senior Member aeroweb99's Avatar
    Join Date
    Feb 2008
    Location
    Port Huron, Michigan
    Posts
    1,037
    Member #
    16468
    Liked
    1 times
    Use line-height in your css.

  4. #3
    Senior Member jyuill's Avatar
    Join Date
    Jan 2009
    Location
    California
    Posts
    145
    Member #
    18049
    Quote Originally Posted by ketanco
    hello,
    I have two
    </br>
    </br>
    but i dont lke the spacing betwene two lines of text under each other. Th espace between two lines is too much. How can I reduce the space between two lines of text? I tried <p> but it is even worse, more space...I am trying to reduce spacing between two lines of text...more than one </br> but less than two </br>
    such as:
    line of text 1
    line of text 2
    so, how can I adjust the spacing between these two lines precisely as I like?
    If the two lines are in fact paragraphs, then use the <p> tag. If the space is too much (and this is something most people probably do anyay), set the margin and padding to 0 in your css. Some do it in the body{} declaration, I use the *selector at the start of my CSS. That also helps your page start off appearing the same in all browsers, along with making it so you can position everything exactly how you want it.
    Many people use massive resets; I have found the margin:0; padding:0; works just fine for me.
    Then you will want to set your line-height to get just the space you want.
    Semantic, Valid, and Accessible Design!


  5. #4
    Senior Member Hitch - CP's Avatar
    Join Date
    Jun 2009
    Location
    London
    Posts
    120
    Member #
    19164
    Yes, altering the line-height in the css code should solver this problem.

    I try to avoid using <p> because it disrupts the background of the container div.
    Ali Hitch

    Portfolio & Tutorial Site
    www.alihitch.com

  6. #5
    Senior Member Dorky's Avatar
    Join Date
    Jun 2009
    Location
    Destin Florida
    Posts
    1,430
    Member #
    19103
    Liked
    4 times
    <p> is just fine lol.

    p { margin: 0px; }

    while($get_it !== true){ continue; }


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search tags for this page

coding for spacing betwen lines in html
,
distance between 2 lines of text
,
distance between two lines in orthography help
,
how to decrease spacing between lines in html
,

how to set distance between two lines in html

,
html css distance between lines
,
html distance text
,
html how to increase distance between lines in text
,
measuring the distance between lines of text
,
who create space betwen two lines in html
Click on a term to search for related topics.
All times are GMT -6. The time now is 11:17 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com