(White)space above text? Can i remove it?

Discussion in 'HTML & Website Design' started by Duncee, Jul 3, 2010.

  1. #1
    Hi All!

    I have a question about the (white) space above any text.
    I don't know if its possible to remove it or not but i hope yes...
    Please look at the attached picture.
    You can see the space between the text and the black border on the top...

    I tried padding, margin set to zero but nothing worked!
    Maybe its not possible to remove it?
    So as i see the font has a bigger height then it needs to :mad:
    whitespace.jpg

    Thanks in advance!
     
    Duncee, Jul 3, 2010 IP
  2. kids

    kids Active Member

    Messages:
    411
    Likes Received:
    4
    Best Answers:
    2
    Trophy Points:
    68
    #2
    Try in CSS with
    .yourclass {
    line-height:Npx;
    }
    N:try change some values until it's ok. Hope it will help you out!
     
    kids, Jul 3, 2010 IP
  3. Duncee

    Duncee Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi,

    thanks for the fast response, i tried this before but i forget to add padding to it that time... now it works :)

    Have you got a solution for IE6 maybe? (Sorry but there are people still use it...)

    But thanks again for the answer!

    Edit: Doesn't matter it works also, THANKS!
     
    Last edited: Jul 3, 2010
    Duncee, Jul 3, 2010 IP