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

sean shea
sean shea
22,104 Points

SASS Function

Hello,

I found a function that will help me calculate a percent. My issue is that when the function is being called in Sass the output in the css is the same. Has anyone else had this issue before?

@function calc-percent($target, $container) { @return ($target / $container) * 100%; }

Whats in Sass .col-1-1 { width: calc-percent(65, 1000); }

output in css

.col-1-1 { width: calc-percent(65, 1000); }