dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: Firefox and line-height

  1. #1
    Join Date
    Aug 2005
    Posts
    1

    Firefox and line-height

    Is there a trick to getting Firefox to recognize the line-height property? All of the other browsers seem to be recognizing it and Firefox is completely ignoring it.

    Here is my code:

    #col4 p {
    margin: 8px 20px 10px 20px;
    padding: 0;
    font: 11px Verdana, Arial, Helvetica, sans-serif;
    line-height: 13pt;
    color: #ffffff;
    }

    Thanks!
    Last edited by tracyace; 08-11-2005 at 06:39 PM. Reason: added more info

  2. #2
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    It looks to me like your margins would swamp the line-height. Got link?

  3. #3
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,637
    Your font-size is in pixels while your line-height is in points. Thus I'm wondering if the different browsers perhaps have a slightly different interpretation of points versus pixels, thus generating a visual difference. (Personally, I like to use percentages for line-height, so that the proportion remains the same if the user increases/decreases their browser's font-size.)
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles