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

New No-Code Track! 🚀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
    • 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
  • 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
  • vikrant kaushal
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    vikrant kaushal
    Front End Web Development Techdegree Student 2,558 Points

    Percentages and relation

    Posted December 17, 2020 5:47pm by vikrant kaushal
    .a{fill-rule:evenodd;}techdegree
    vikrant kaushal
    Front End Web Development Techdegree Student 2,558 Points
    • CSS
    • CSS Basics (2014)
    • Understanding Values and Units
    • Percentages

    1 Answer

  • Dino Batanovic
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Dino Batanovic
    Front End Web Development Techdegree Student 1,262 Points

    The primary content doesn't change the width

    Posted December 16, 2020 3:46am by Dino Batanovic
    .a{fill-rule:evenodd;}techdegree
    Dino Batanovic
    Front End Web Development Techdegree Student 1,262 Points
    • CSS
    • CSS Basics (2014)
    • Understanding Values and Units
    • Percentages

    1 Answer

  • sarahmoore4
    sarahmoore4
    6,980 Points

    Does a parent element need an absolute unit value for a child element to use a percentage unit when sizing?

    Posted October 19, 2020 7:25pm by sarahmoore4
    sarahmoore4
    6,980 Points
    • CSS
    • CSS Basics (2014)
    • Understanding Values and Units
    • Percentages

    1 Answer

  • Amanda Mallonee
    Amanda Mallonee
    7,540 Points

    css is not saving

    Posted April 7, 2020 5:07am by Amanda Mallonee
    Amanda Mallonee
    7,540 Points
    • CSS
    • CSS Basics (2014)
    • Understanding Values and Units
    • Percentages

    3 Answers

  • Robert Lynch
    Robert Lynch
    2,484 Points

    In CSS Basics using %.

    Posted March 24, 2020 1:21am by Robert Lynch
    Robert Lynch
    2,484 Points
    • CSS
    • CSS Basics (2014)
    • Understanding Values and Units
    • Percentages

    0 Answers

  • Konrad Dziekonski
    Konrad Dziekonski
    7,798 Points

    text-align: center

    Posted October 9, 2019 1:48pm by Konrad Dziekonski
    Konrad Dziekonski
    7,798 Points
    • CSS
    • CSS Basics (2014)
    • Understanding Values and Units
    • Percentages

    1 Answer

  • Matthew Francis
    Matthew Francis
    6,967 Points

    Pixels as a unit

    Posted November 4, 2018 6:29pm by Matthew Francis
    Matthew Francis
    6,967 Points
    • CSS
    • CSS Basics (2014)
    • Understanding Values and Units
    • Percentages

    1 Answer

  • Nour El-din El-helw
    Nour El-din El-helw
    8,241 Points

    Fixed pixel based font sizes and parent elements

    Posted April 23, 2018 8:09pm by Nour El-din El-helw
    Nour El-din El-helw
    8,241 Points
    • CSS
    • CSS Basics (2014)
    • Understanding Values and Units
    • Percentages

    2 Answers

  • Matthew Edey
    Matthew Edey
    4,238 Points

    Is the instructor misspeaking, or am I misunderstanding terminology.

    Posted January 17, 2018 1:48am by Matthew Edey
    Matthew Edey
    4,238 Points
    • CSS
    • CSS Basics (2014)
    • Understanding Values and Units
    • Percentages

    3 Answers

  • Andy tran
    Andy tran
    7,112 Points

    when do we use px ?and when do we use %?

    Posted January 10, 2018 8:49am by Andy tran
    Andy tran
    7,112 Points
    • CSS
    • CSS Basics (2014)
    • Understanding Values and Units
    • Percentages

    2 Answers

  • Garrosh HellScream
    Garrosh HellScream
    7,503 Points

    How do you get the window and viewport size to appear in the bottom right corner at the 00:50 mark?

    Posted January 9, 2018 2:26pm by Garrosh HellScream
    Garrosh HellScream
    7,503 Points
    • CSS
    • CSS Basics (2014)
    • Understanding Values and Units
    • Percentages

    1 Answer

  • Sandeep Singh
    Sandeep Singh
    3,582 Points

    text-alignment

    Posted August 6, 2017 2:37am by Sandeep Singh
    Sandeep Singh
    3,582 Points
    • CSS
    • CSS Basics (2014)
    • Understanding Values and Units
    • Percentages

    2 Answers

  • Andrew Felix
    Andrew Felix
    1,517 Points

    Is % (percentage unit) responsive?

    Posted June 19, 2017 11:15am by Andrew Felix
    Andrew Felix
    1,517 Points
    • CSS
    • CSS Basics (2014)
    • Understanding Values and Units
    • Percentages

    2 Answers

  • Nick Ars
    Nick Ars
    5,341 Points

    Can we add a common class for .primary-content and .secondary-content?

    Posted October 12, 2016 7:53pm by Nick Ars
    Nick Ars
    5,341 Points
    • CSS
    • CSS Basics (2014)
    • Understanding Values and Units
    • Percentages

    2 Answers

  • Christopher Sea
    Christopher Sea
    3,726 Points

    Is it possible to change the default font-size using 2 .css files?

    Posted April 8, 2016 9:07pm by Christopher Sea
    Christopher Sea
    3,726 Points
    • CSS
    • CSS Basics (2014)
    • Understanding Values and Units
    • Percentages

    3 Answers

  • Beth Farrelly
    Beth Farrelly
    2,157 Points

    Why is the paragraph text being set to 150% equivalent to 24px?

    Posted March 30, 2016 3:49pm by Beth Farrelly
    Beth Farrelly
    2,157 Points
    • CSS
    • CSS Basics (2014)
    • Understanding Values and Units
    • Percentages

    5 Answers

  • Omarwali Jones
    Omarwali Jones
    8,251 Points

    percentage values (%) in relation to the body element?

    Posted November 15, 2015 12:36am by Omarwali Jones
    Omarwali Jones
    8,251 Points
    • CSS
    • CSS Basics (2014)
    • Understanding Values and Units
    • Percentages

    1 Answer

  • Jonthue Michel
    Jonthue Michel
    1,462 Points

    So wouldn't pxiel length values be more mobile friendly than px?

    Posted August 12, 2015 1:47am by Jonthue Michel
    Jonthue Michel
    1,462 Points
    • CSS
    • CSS Basics (2014)
    • Understanding Values and Units
    • Percentages

    1 Answer

  • Zachary Hutchins
    Zachary Hutchins
    1,567 Points

    Parent element

    Posted June 17, 2015 2:59am by Zachary Hutchins
    Zachary Hutchins
    1,567 Points
    • CSS
    • CSS Basics (2014)
    • Understanding Values and Units
    • Percentages

    1 Answer

  • David Lacho
    David Lacho
    20,864 Points

    At 3:26 you say 150px but write 150%. I think you mean %?

    Posted March 25, 2015 11:54am by David Lacho
    David Lacho
    20,864 Points
    • CSS
    • CSS Basics (2014)
    • Understanding Values and Units
    • Percentages

    3 Answers

  • Ayoub AIT IKEN
    Ayoub AIT IKEN
    12,314 Points

    pourcentage

    Posted February 14, 2015 10:37pm by Ayoub AIT IKEN
    Ayoub AIT IKEN
    12,314 Points
    • CSS
    • CSS Basics (2014)
    • Understanding Values and Units
    • Percentages

    2 Answers

  • Eric Bezanson
    Eric Bezanson
    2,907 Points

    background-color not working

    Posted February 5, 2015 8:36am by Eric Bezanson
    Eric Bezanson
    2,907 Points
    • CSS
    • CSS Basics (2014)
    • Understanding Values and Units
    • Percentages

    3 Answers

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.