Skip to main content

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

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

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

  • 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
  • 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.

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