Skip to main content

NOTICE: On Friday Nov 6, Workspaces will be temporarily unavailable for maintenance.

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

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

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • 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
      • • Vibe Coding
  • Carlos Chang Cheng
    PLUS
    Carlos Chang Cheng
    Courses Plus Student 12,030 Points

    Don't understand why margin-bottom has (70px, 42px);

    Posted November 21, 2017 12:05pm by Carlos Chang Cheng
    Carlos Chang Cheng
    Courses Plus Student 12,030 Points
    • CSS
    • Modular CSS with Sass
    • Getting Modular with Mixins and Functions
    • Pixels to Em Function

    2 Answers

  • jlampstack
    jlampstack
    23,932 Points

    Is there a way to import the url font only if it's being used?

    Posted August 30, 2017 11:04pm by jlampstack
    jlampstack
    23,932 Points
    • CSS
    • Modular CSS with Sass
    • Getting Modular with Mixins and Functions
    • Pixels to Em Function

    1 Answer

  • robertmills2
    PLUS
    robertmills2
    Courses Plus Student 14,965 Points

    when using a calculation function within Sass, how can we set the significant digit of the output value?

    Posted August 21, 2017 6:48am by robertmills2
    robertmills2
    Courses Plus Student 14,965 Points
    • CSS
    • Modular CSS with Sass
    • Getting Modular with Mixins and Functions
    • Pixels to Em Function

    1 Answer

  • Anwar Rizalman
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Anwar Rizalman
    Python Development Techdegree Graduate 33,620 Points

    Regarding @import for font style

    Posted August 15, 2017 7:38am by Anwar Rizalman
    .a{fill-rule:evenodd;}techdegree seal-36
    Anwar Rizalman
    Python Development Techdegree Graduate 33,620 Points
    • CSS
    • Modular CSS with Sass
    • Getting Modular with Mixins and Functions
    • Pixels to Em Function

    2 Answers

  • Tiff L
    Tiff L
    2,709 Points

    function em / typography

    Posted March 17, 2017 7:16pm by Tiff L
    Tiff L
    2,709 Points
    • CSS
    • Modular CSS with Sass
    • Getting Modular with Mixins and Functions
    • Pixels to Em Function

    1 Answer

  • alfonso moreno
    alfonso moreno
    5,096 Points

    Error in 'to_specs': Could not find 'sass'

    Posted December 29, 2015 6:08pm by alfonso moreno
    alfonso moreno
    5,096 Points
    • CSS
    • Modular CSS with Sass
    • Getting Modular with Mixins and Functions
    • Pixels to Em Function

    2 Answers

  • Antonio Jaramillo
    Antonio Jaramillo
    15,604 Points

    I added a nice article on baselines. I thought it was relevant to this course.

    Posted October 22, 2015 5:42pm by Antonio Jaramillo
    Antonio Jaramillo
    15,604 Points
    • CSS
    • Modular CSS with Sass
    • Getting Modular with Mixins and Functions
    • Pixels to Em Function

    0 Answers

  • sayedshahidi
    sayedshahidi
    9,158 Points

    Using pixel conversion for different values ?

    Posted August 12, 2015 12:18pm by sayedshahidi
    sayedshahidi
    9,158 Points
    • CSS
    • Modular CSS with Sass
    • Getting Modular with Mixins and Functions
    • Pixels to Em Function

    2 Answers

  • Ian Mackenzie
    Ian Mackenzie
    11,062 Points

    error scss/_base.scss (Line 22: Undefined variable: "$font-weight--light".)

    Posted June 9, 2015 11:16pm by Ian Mackenzie
    Ian Mackenzie
    11,062 Points
    • CSS
    • Modular CSS with Sass
    • Getting Modular with Mixins and Functions
    • Pixels to Em Function

    1 Answer

  • Leigh Maher
    Leigh Maher
    21,830 Points

    Confusion about set up of files

    Posted April 29, 2015 4:27pm by Leigh Maher
    Leigh Maher
    21,830 Points
    • CSS
    • Modular CSS with Sass
    • Getting Modular with Mixins and Functions
    • Pixels to Em Function

    4 Answers

  • Ivan Uvarov
    Ivan Uvarov
    22,403 Points

    Strange use of em

    Posted April 10, 2015 7:24pm by Ivan Uvarov
    Ivan Uvarov
    22,403 Points
    • CSS
    • Modular CSS with Sass
    • Getting Modular with Mixins and Functions
    • Pixels to Em Function

    1 Answer

  • tian jin
    PLUS
    tian jin
    Courses Plus Student 5,162 Points

    is the line-height missing em?

    Posted February 16, 2015 4:36pm by tian jin
    tian jin
    Courses Plus Student 5,162 Points
    • CSS
    • Modular CSS with Sass
    • Getting Modular with Mixins and Functions
    • Pixels to Em Function

    1 Answer

  • Edward Bryan Kene Morales
    Edward Bryan Kene Morales
    7,374 Points

    Sass Naming Convention

    Posted December 23, 2014 8:54pm by Edward Bryan Kene Morales
    Edward Bryan Kene Morales
    7,374 Points
    • CSS
    • Modular CSS with Sass
    • Getting Modular with Mixins and Functions
    • Pixels to Em Function

    1 Answer

  • Sidney François
    Sidney François
    2,092 Points

    Why/how is the _base.scss line-height calculated?

    Posted October 1, 2014 11:16am by Sidney François
    Sidney François
    2,092 Points
    • CSS
    • Modular CSS with Sass
    • Getting Modular with Mixins and Functions
    • Pixels to Em Function

    1 Answer

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

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord