#1
  1. No Profile Picture
    ::::
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2002
    Posts
    64
    Rep Power
    12

    CSS <number> in line-height: what's it spec?


    I was working through a CSS example from a book by the spec's authors, and ran into something puzzling.

    There's some code setting line-height to '1.0,' which I assumed till now meant the same as '1em,' but it gives VERY different results in my browsers (IE6/win, N7/win).

    I've tried wading through the spec at the W3 site, but don't see the explanation so far. Can anyone enlighten me? :|
    Last edited by viz; May 28th, 2003 at 09:32 PM.
    Disclaimer: content may have handled during settling.
    ::::::::::::::
    regards, viz
  2. #2
  3. No Profile Picture
    CF sMod
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Maine, USA (a.k.a. Boonies)
    Posts
    242
    Rep Power
    15
    http://www.w3.org/TR/REC-CSS2/visude...ef-line-height

    Without seeing any further code, I'm guessing it is IE not properly inheriting line-height.
  4. #3
  5. No Profile Picture
    ::::
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2002
    Posts
    64
    Rep Power
    12
    Don't think so as, like I said, it works almost the same in NS7.

    Also, your link is to the same place where I already looked in the spec.
    Last edited by viz; May 30th, 2003 at 07:53 PM.
    Disclaimer: content may have handled during settling.
    ::::::::::::::
    regards, viz
  6. #4
  7. No Profile Picture
    ::::
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2002
    Posts
    64
    Rep Power
    12
    *found answer from another source*
    Disclaimer: content may have handled during settling.
    ::::::::::::::
    regards, viz
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Sep 2000
    Posts
    763
    Rep Power
    0
    Mind telling us what was wrong?

IMN logo majestic logo threadwatch logo seochat tools logo