Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    118
    Thanks
    22
    Thanked 0 Times in 0 Posts

    <P> Text Line To Close To Each Other

    Hi my paragraph lines are to close to each other when the go to next line. how do i fix it. I tried line spacing.

    http://codepen.io/CarraraWebsiteSolutions/pen/qdcvH

  • #2
    Regular Coder
    Join Date
    Mar 2013
    Posts
    262
    Thanks
    4
    Thanked 67 Times in 67 Posts
    I don't think I've ever heard of line spacing before. Lol. Take a look at...

    Line-Height

    My signature :)

  • #3
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,606
    Thanks
    6
    Thanked 997 Times in 970 Posts
    Oh, how I hate this bloated HTML/CSS framework crap.

    Well, somewhere in your CSS you have font: 100%/1em Arial,Geneva,Helvetica,sans-serif. Don’t set line heights in em. If at all use ex since that is the vertical equivalent (height of lowercase ‘x’) to the em unit (width of the ‘m’). But better yet is to use unitless line height which relates to the very text to which it applies. For example, line-height: 1.2 means 1.2 times the size of the text.

  • The Following 2 Users Say Thank You to VIPStephan For This Useful Post:

    Common (10-25-2013), riwakawd (10-26-2013)

  • #4
    Regular Coder
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    118
    Thanks
    22
    Thanked 0 Times in 0 Posts
    I am using bootstrap 3 people have there own choices weather they like it or not. There are goods and bad's about bootstrap 3 this part font: 100%/1em Arial, Geneva, Helvetica, sans-serif; was causing issue on body.
    Last edited by riwakawd; 10-25-2013 at 07:04 AM.

  • #5
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,300
    Thanks
    28
    Thanked 275 Times in 269 Posts
    Quote Originally Posted by VIPStephan View Post
    Don’t set line heights in em. If at all use ex since that is the vertical equivalent (height of lowercase ‘x’) to the em unit (width of the ‘m’).
    Per spec, em units are equivalent to the font size, not the width (or height) of the letter "M". Thus, specifying 1em for the line-height property is the equivalent of saying "there should be no space between lines" since the line height is then exactly equivalent to the font height.
    For every complex problem, there is an answer that is clear, simple, and wrong.

  • Users who have thanked Arbitrator for this post:

    riwakawd (10-26-2013)


  •  

    Tags for this Thread

    Posting Permissions

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