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 trialMaksym Novikov
4,580 PointsIncorrect task
In second question I wrote a function, that returns $target divided by $content and multiplied by 1rem. But this isn't correct. What's wrong here?
$base-font-size: 16px;
// Write your function here
@function px-to-rem( $target, $context: $base-font-size ) {
@return( $target / $content ) * 1rem;
}
1 Answer
Chris Shaw
26,676 PointsHi Maksym Novikov,
You have a very simple typo which is instead of $context
you have $content
. I can admit that this happens to me all the time and is easy to miss ?.
Happy coding!