🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀 New videos dropping every week—start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Community Projects
    • Live Sessions
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Community Projects Live Sessions Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
  • Charlene Janzen
    Charlene Janzen
    9,807 Points

    My code seems correct, but the quiz returns an error.

    Posted April 15, 2021 9:14pm by Charlene Janzen
    Charlene Janzen
    9,807 Points
    • CSS
    • Sass Basics
    • Write Smart and Efficient CSS with Sass
    • Write a Sass Function

    1 Answer

  • Joseph Harlow
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Joseph Harlow
    Front End Web Development Techdegree Student 8,243 Points

    Finally, create a rule that targets an h1. Use the px-to-rem function to convert a font-size value of 60px to a value in

    Posted May 21, 2020 12:50pm by Joseph Harlow
    .a{fill-rule:evenodd;}techdegree
    Joseph Harlow
    Front End Web Development Techdegree Student 8,243 Points
    • CSS
    • Sass Basics
    • Write Smart and Efficient CSS with Sass
    • Write a Sass Function

    1 Answer

  • Alexandra Velez
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Alexandra Velez
    Front End Web Development Techdegree Student 9,313 Points

    Why does the function not produce the result?

    Posted May 3, 2020 8:58pm by Alexandra Velez
    .a{fill-rule:evenodd;}techdegree
    Alexandra Velez
    Front End Web Development Techdegree Student 9,313 Points
    • CSS
    • Sass Basics
    • Write Smart and Efficient CSS with Sass
    • Write a Sass Function

    1 Answer

  • Pui Lun Christin C Hebron
    Pui Lun Christin C Hebron
    5,693 Points

    Finally, create a rule that targets an h1. Use the px-to-rem function to convert a font-size value of 60px to a value in

    Posted December 22, 2019 3:51pm by Pui Lun Christin C Hebron
    Pui Lun Christin C Hebron
    5,693 Points
    • CSS
    • Sass Basics
    • Write Smart and Efficient CSS with Sass
    • Write a Sass Function

    2 Answers

  • True Andrews
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    True Andrews
    Front End Web Development Techdegree Student 10,520 Points

    I don't know how to go about this task of the challenge

    Posted September 25, 2019 7:53pm by True Andrews
    .a{fill-rule:evenodd;}techdegree
    True Andrews
    Front End Web Development Techdegree Student 10,520 Points
    • CSS
    • Sass Basics
    • Write Smart and Efficient CSS with Sass
    • Write a Sass Function

    1 Answer

  • Hanna Zeif
    Hanna Zeif
    11,309 Points

    Don't know why it's not working

    Posted November 13, 2018 1:00am by Hanna Zeif
    Hanna Zeif
    11,309 Points
    • CSS
    • Sass Basics
    • Write Smart and Efficient CSS with Sass
    • Write a Sass Function

    2 Answers

  • Maksym Novikov
    Maksym Novikov
    4,580 Points

    Incorrect task

    Posted September 24, 2018 6:57am by Maksym Novikov
    Maksym Novikov
    4,580 Points
    • CSS
    • Sass Basics
    • Write Smart and Efficient CSS with Sass
    • Write a Sass Function

    1 Answer

  • Pavel Adamov
    Pavel Adamov
    6,502 Points

    Challenge task - whats wrong with this code?

    Posted September 10, 2018 5:06pm by Pavel Adamov
    Pavel Adamov
    6,502 Points
    • CSS
    • Sass Basics
    • Write Smart and Efficient CSS with Sass
    • Write a Sass Function

    1 Answer

  • David Moorhead
    David Moorhead
    18,005 Points

    Appreciation toward the one who helps answer Task 3 of 3: CSS Custom Function.

    Posted April 10, 2018 2:31am by David Moorhead
    David Moorhead
    18,005 Points
    • CSS
    • Sass Basics
    • Write Smart and Efficient CSS with Sass
    • Write a Sass Function

    6 Answers

  • Abdullahi Abdinasir Ali
    Abdullahi Abdinasir Ali
    9,520 Points

    How do I pass default value context to variable base-font-size

    Posted April 8, 2018 4:20am by Abdullahi Abdinasir Ali
    Abdullahi Abdinasir Ali
    9,520 Points
    • CSS
    • Sass Basics
    • Write Smart and Efficient CSS with Sass
    • Write a Sass Function

    1 Answer

  • Hendrik Van Dijck
    Hendrik Van Dijck
    2,330 Points

    I can not find the solution to 'write a sass function' challenge 1?

    Posted February 13, 2018 3:13pm by Hendrik Van Dijck
    Hendrik Van Dijck
    2,330 Points
    • CSS
    • Sass Basics
    • Write Smart and Efficient CSS with Sass
    • Write a Sass Function

    1 Answer

  • nicolabell
    nicolabell
    18,212 Points

    Cannot get the function to work

    Posted January 23, 2018 7:16pm by nicolabell
    nicolabell
    18,212 Points
    • CSS
    • Sass Basics
    • Write Smart and Efficient CSS with Sass
    • Write a Sass Function

    1 Answer

  • lilliancopeland
    PLUS
    lilliancopeland
    Courses Plus Student 9,587 Points

    what I'm I doing wrong in sass??

    Posted October 26, 2017 6:35pm by lilliancopeland
    lilliancopeland
    Courses Plus Student 9,587 Points
    • CSS
    • Sass Basics
    • Write Smart and Efficient CSS with Sass
    • Write a Sass Function

    3 Answers

  • affash
    affash
    9,152 Points

    task 3 of 3 Write a Sass Function

    Posted September 7, 2017 9:11am by affash
    affash
    9,152 Points
    • CSS
    • Sass Basics
    • Write Smart and Efficient CSS with Sass
    • Write a Sass Function

    1 Answer

  • affash
    affash
    9,152 Points

    Task 1 of 3 write a Sass Function

    Posted September 7, 2017 8:23am by affash
    affash
    9,152 Points
    • CSS
    • Sass Basics
    • Write Smart and Efficient CSS with Sass
    • Write a Sass Function

    1 Answer

  • Philip Ollas
    Philip Ollas
    5,705 Points

    Write a function, called px-to-rem, that accepts the parameters $target and $context. Set the default value of $context

    Posted August 13, 2017 10:53am by Philip Ollas
    Philip Ollas
    5,705 Points
    • CSS
    • Sass Basics
    • Write Smart and Efficient CSS with Sass
    • Write a Sass Function

    2 Answers

  • Jennifer Moodie
    Jennifer Moodie
    5,193 Points

    why won't it covert the pixels to rems

    Posted August 5, 2017 5:46pm by Jennifer Moodie
    Jennifer Moodie
    5,193 Points
    • CSS
    • Sass Basics
    • Write Smart and Efficient CSS with Sass
    • Write a Sass Function

    1 Answer

  • Neil Nathan
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Neil Nathan
    Front End Web Development Techdegree Student 9,347 Points

    Issue with quiz answer

    Posted June 21, 2017 2:17pm by Neil Nathan
    .a{fill-rule:evenodd;}techdegree
    Neil Nathan
    Front End Web Development Techdegree Student 9,347 Points
    • CSS
    • Sass Basics
    • Write Smart and Efficient CSS with Sass
    • Write a Sass Function

    1 Answer

  • Blessing MAKOMBE (nee Charakupa)
    Blessing MAKOMBE (nee Charakupa)
    5,596 Points

    Write a function, called px-to-rem, that accepts the parameters $target and $context. Set the default value of $context

    Posted May 22, 2017 2:12pm by Blessing MAKOMBE (nee Charakupa)
    Blessing MAKOMBE (nee Charakupa)
    5,596 Points
    • CSS
    • Sass Basics
    • Write Smart and Efficient CSS with Sass
    • Write a Sass Function

    0 Answers

  • Sam Muir
    Sam Muir
    16,745 Points

    Quiz is wrong

    Posted May 15, 2017 4:56am by Sam Muir
    Sam Muir
    16,745 Points
    • CSS
    • Sass Basics
    • Write Smart and Efficient CSS with Sass
    • Write a Sass Function

    1 Answer

  • znzlcrstkk
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    znzlcrstkk
    Front End Web Development Techdegree Graduate 28,511 Points

    Please somebody help me, because i'm stuck

    Posted May 14, 2017 2:55pm by znzlcrstkk
    .a{fill-rule:evenodd;}techdegree seal-36
    znzlcrstkk
    Front End Web Development Techdegree Graduate 28,511 Points
    • CSS
    • Sass Basics
    • Write Smart and Efficient CSS with Sass
    • Write a Sass Function

    2 Answers

  • znzlcrstkk
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    znzlcrstkk
    Front End Web Development Techdegree Graduate 28,511 Points

    Finally, create a rule that targets an h1. Use the px-to-rem function to convert a font-size value of 60px to a value in

    Posted May 13, 2017 4:32pm by znzlcrstkk
    .a{fill-rule:evenodd;}techdegree seal-36
    znzlcrstkk
    Front End Web Development Techdegree Graduate 28,511 Points
    • CSS
    • Sass Basics
    • Write Smart and Efficient CSS with Sass
    • Write a Sass Function

    5 Answers

  • Ashley Chenn
    Ashley Chenn
    8,329 Points

    I'm not sure how to set the default value of a variable to the value of another variable. Help!

    Posted April 26, 2017 12:40am by Ashley Chenn
    Ashley Chenn
    8,329 Points
    • CSS
    • Sass Basics
    • Write Smart and Efficient CSS with Sass
    • Write a Sass Function

    2 Answers

  • Edmond Pihe
    Edmond Pihe
    6,922 Points

    In the @return statement, divide $target by $context, and multiply it by 1rem. This will return a rem value.

    Posted April 25, 2017 8:22am by Edmond Pihe
    Edmond Pihe
    6,922 Points
    • CSS
    • Sass Basics
    • Write Smart and Efficient CSS with Sass
    • Write a Sass Function

    6 Answers

  • Luke Svarc
    Luke Svarc
    4,919 Points

    Creating px-to-rem conversion using @function

    Posted April 21, 2017 10:53am by Luke Svarc
    Luke Svarc
    4,919 Points
    • CSS
    • Sass Basics
    • Write Smart and Efficient CSS with Sass
    • Write a Sass Function

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.