line break height?

Discussion in 'CSS' started by m30, Nov 21, 2009.

  1. #1
    Hi,

    I'm not referring to a <br />, but when the text is in a div and automatically goes to the next line. I've set padding and margin 0, to that text - but how can I change the space between each new line?

    Thanks.
     
    m30, Nov 21, 2009 IP
  2. D-Fraz

    D-Fraz Peon

    Messages:
    234
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try this if you want a div:
    <div style="line-height:4px;">Everything goes here.</div>
    Code (markup):
    Mess around with the line height's pixels to get it how you want.
    Let me know if that works.
     
    D-Fraz, Nov 21, 2009 IP