Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Apr 2012
    Posts
    32
    Thanks
    20
    Thanked 0 Times in 0 Posts

    micro-question about em's

    guys, I just want to make sure of something, it seems that i can specify that i want a font to be 1.05em

    as in, i can specify it to 2 decimal places, which is handy for fine tuning. is this correct?

    cheers for reading,
    redd

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,672
    Thanks
    6
    Thanked 1,006 Times in 979 Posts
    Yes but eventually all units are translated into pixels and there can only be full pixels. So, if 1.05em = 16.223px then the browser decides to which next full value to round it to (in this case it’s most likely gonna be 16px). Some browsers are a little better in fine tuning text but some aren’t so you shouldn’t be that picky.

  • Users who have thanked VIPStephan for this post:

    Redd4 (12-10-2012)

  • #3
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,640
    Thanks
    0
    Thanked 649 Times in 639 Posts
    That level of precision in your em sizes will only make a difference where 1em >= 20px
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • Users who have thanked felgall for this post:

    Redd4 (12-10-2012)

  • #4
    New Coder
    Join Date
    Apr 2012
    Posts
    32
    Thanks
    20
    Thanked 0 Times in 0 Posts
    just returning to this thread now, want to say thanks for the input guys, appreciate it


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •