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 Sass Basics (retired) Speeding up Workflow with Sass Sass Functions

Now that you've refactored this code into something that no one would ever actually do in real life, please make this co

what the code be like

index.html
<!DOCTYPE html>
<html>
<head>
  <title>Sass Basics - Code Challenge</title>
  <link rel="stylesheet" type="text/css" href="page-style.css">
  <link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
  <div>
    <p>
      Bacon ipsum dolor sit amet biltong capicola meatball, corned beef venison tongue meatloaf ham sausage jerky short loin bacon. Shoulder pork pig, pancetta turducken flank strip steak prosciutto jerky venison.
    </p>
    <p>
      Ground round bacon pig ribeye biltong capicola jerky prosciutto sirloin. Hamburger turducken corned beef leberkas andouille, shoulder pork shank strip steak biltong flank meatball pancetta chicken.
    </p>
  </div>
</body>
</html>
style.scss
/* Write your SCSS code below. */
@function double($input) {
  @return $input * 2; }
div {font-size: (double(5px));}
Seth McCombs
Seth McCombs
16,767 Points

Hey Justice! Not sure I understand your question, could you try explaining it a little more? Thanks!

3 Answers

Seth McCombs
Seth McCombs
16,767 Points

For the final part, they're looking for you to write the CSS as 10px, instead of double 5px. Their justification is that it's easier to write 10px, the math operations make things harder than they need to be.

Maureen O'Neal
Maureen O'Neal
12,930 Points

Yes, elaborate on your actual question.

whats the code for that code challenge3......Now that you've refactored this code into something that no one would ever actually do in real life, please make this code the way you should write it. (Just because you can do something with a Sass feature, doesn't mean you should.)...please help i'm stuck

THANKS I FINNALY FIGURED IT OUT