CSS question

Out of context: Reply #8

  • Started
  • Last post
  • 16 Responses
  • vaxorcist0

    the ems or pixels thing is a nuclear war amongst some designers and developers.....

    without taking sides, I'd say:

    1. if you're going from a PSD to a web layout and you want pixel-perfect sameness, use pixels

    2. if you're going for a resizable layout, liquid layout and/or trying to make something really re-usable on various devices, you can use ems.

    ems allow for relative sizing, which can be useful if you have bifocal users who enlarge the text, the whole layout can change accordingly... but note that this may freak out designers who feel like their work has just been vandalized....

    • given the 1em to 16px conversion, pixel perfection is better accomplished through em... WAR ON!!!!
      ********
    • I always have more issues with em though, especially when it comes to browser compatibility. So I use both.Jaline
    • me too.. ems have caused a few all-night browser testing and debugging sessions from hell for mevaxorcist
    • jaline - would you just have line-hight: 1em 16px; or a declaration for each?alicetheblue
    • i actually prefer (and notice) the difference em has on a site over px. em fo lyf
      ********
    • what if you want 15 pixels?mantrakid

View thread