Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Can I use .63 as a em unit in my css?

I have never seen this before. I have a nav bar that when I divide the answer is 0.625, I round up to 0.63. I'm just curious if this is okay? I did add 0.63 and everything looks okay.Thanks in advance for the answers.

2 Answers

I don't see why not. The 'em' is only relative to whatever the font size is set to already, which is why it's a lot easier to work with the smaller two digit numbers. i would assume that keeping things simpler will save you a headache when you have to control a multitude of elements. So aesthetically, .005 is not really going to make a difference. Technically, it should work anyways.

thanks Chris for the help