Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-05-2012, 09:52 AM   PM User | #1
Redd4
New Coder

 
Join Date: Apr 2012
Posts: 32
Thanks: 20
Thanked 0 Times in 0 Posts
Redd4 is an unknown quantity at this point
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
Redd4 is offline   Reply With Quote
Old 12-05-2012, 10:08 AM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,614
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
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.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Users who have thanked VIPStephan for this post:
Redd4 (12-10-2012)
Old 12-05-2012, 06:41 PM   PM User | #3
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,465
Thanks: 0
Thanked 499 Times in 491 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
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/
felgall is offline   Reply With Quote
Users who have thanked felgall for this post:
Redd4 (12-10-2012)
Old 12-10-2012, 11:47 AM   PM User | #4
Redd4
New Coder

 
Join Date: Apr 2012
Posts: 32
Thanks: 20
Thanked 0 Times in 0 Posts
Redd4 is an unknown quantity at this point
just returning to this thread now, want to say thanks for the input guys, appreciate it
Redd4 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:12 PM.


Advertisement
Log in to turn off these ads.