Loading ...
Sorry, an error occurred while loading the content.

Converting from pixels to em

Expand Messages
  • Brendan Vogt
    Hi, I am trying to convert my 10px for a margin bottom to em, but the docs say that I must include a * for IE. Am I doing this correct? margin-bottom:.77em;
    Message 1 of 1 , May 3, 2009
    • 0 Attachment
      Hi,

      I am trying to convert my 10px for a margin bottom to em, but the docs say that I must include a * for IE.  Am I doing this correct?

      margin-bottom:.77em;  // Firefox
      *margin-bottom:.75em;  // IE

      To how many decimals must it be rounded off?

      Thanks
      Brendan
    Your message has been successfully submitted and would be delivered to recipients shortly.