Using em and rem in font-size and line-height

Home Forums Iconic One Pro Support Using em and rem in font-size and line-height

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4960
    alpha9themonic
    Participant

    I see you suggest using font-size and line-height in pixels in replies to several questions on this forum. Here is one example:

    Please see response to items 5, 6, and 8 in in this example.

    1) Is there a particular reason for using px? Is it possible to use em for font-size and rem for line-height instead of px?

    2) Does one have to make any other change to the code if one wants to use em for font-size and rem for line-height?

    Thanks,
    Sam

    #4962

    Hi Sam,

    1) No reason other than simplicity. Yes, feel free to use em and rem values as they are better.

    2) If you use em and rem in custom css no other changes will be required.

    #4963
    alpha9themonic
    Participant

    This is helpful.
    Thanks,
    Sam

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.