Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Should you round up a 3 digit EM ?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #25223
    lookslikepat
    Member

    This might be a bit anal, but let’s say you have an EM based layout, and the value for ex.

    Code:
    p.foo {
    letter-spacing: 0.333em;
    font-size: 1.888;
    }

    Should you then round any of these up? To 0.334em and/or 1.889em?

    #59431
    apostrophe
    Participant

    I don’t see why you should. According to this converter it doesn’t make a difference anyhow http://pxtoem.com/

    #59493
    lookslikepat
    Member

    Yeah, I mean you shouldn’t, right?
    But still, I swear I’ve seen it somewhere, and sometimes I wonder if rounding up certain EM’s haven’t made the browser "get it" right more often… If I could only remember in what browser, and what i did…

    And speaking of EM’s, btw. Why is everyone complaining so much about the conversion work from PX?? It’s fun! hehe. Math is my friend, today at least.
    No but seriously, it’s not that hard I don’t think, I really don’t get everyone’s beef. All it is, is simple logic. font-size: 1.5em (which is 15px) and you want the line-height to 21px?
    ( 1/15 ) * 21 = 1.4em – ‘lil tip

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.