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 trialrobertmills2
Courses Plus Student 14,965 Pointswhen using a calculation function within Sass, how can we set the significant digit of the output value?
I am getting output values out to 12 decimal places. I may have missed something...
h1 { font-weight: 300; font-size: 2.625em; line-height: 1.0952380952; margin-bottom: 1.6666666667em; }
1 Answer
Tadeáš Firich
7,866 PointsHello, Robert i think your problem is with missing em's in your code. This si your code:
h1 { font-weight: 300; font-size: 2.625em; line-height: 1.0952380952; margin-bottom: 1.6666666667em; }
And i think the output file should look like this:
h1 { font-weight: 300em; font-size: 2.625em; line-height: 1.0952380952em; margin-bottom: 1.6666666667em; }
I think you forgot *1em in return of the function or something like that. Was it helpful? You can give me some points. :)
Nick van der Sangen
11,516 PointsNick van der Sangen
11,516 PointsThis is correct :) Why does it matter how many digits the output has?