Results 1 to 3 of 3

Thread: Firefox and line-height

  1. #1
    Join Date
    Aug 2005

    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;

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

  2. #2
    Join Date
    Nov 2003
    Jerryville, Tejas
    It looks to me like your margins would swamp the line-height. Got link?
    "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan

  3. #3
    Join Date
    Aug 2004
    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

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

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