🤑 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
    • 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
  • ja5on
    ja5on
    10,338 Points

    Percentages. Treehouse staff please help!

    Posted August 3, 2020 2:19pm by ja5on
    ja5on
    10,338 Points
    • CSS
    • CSS Basics (2014)
    • The Box Model
    • Padding

    1 Answer

  • Konrad Dziekonski
    Konrad Dziekonski
    7,798 Points

    scaling in px and %

    Posted October 11, 2019 8:58am by Konrad Dziekonski
    Konrad Dziekonski
    7,798 Points
    • CSS
    • CSS Basics (2014)
    • The Box Model
    • Padding

    2 Answers

  • Kathya Sarria
    Kathya Sarria
    945 Points

    Logic of the percentage used on the padding based on the width

    Posted July 2, 2019 3:16am by Kathya Sarria
    Kathya Sarria
    945 Points
    • CSS
    • CSS Basics (2014)
    • The Box Model
    • Padding

    3 Answers

  • Philip Kasimir
    Philip Kasimir
    2,225 Points

    The Grey/Black background will not show for me after adding the universal padding.

    Posted April 24, 2019 8:23pm by Philip Kasimir
    Philip Kasimir
    2,225 Points
    • CSS
    • CSS Basics (2014)
    • The Box Model
    • Padding

    1 Answer

  • Laercio Goncalves
    Laercio Goncalves
    887 Points

    Box occupying more space then "supposed" to. #padding #percentage

    Posted September 30, 2018 4:39am by Laercio Goncalves
    Laercio Goncalves
    887 Points
    • CSS
    • CSS Basics (2014)
    • The Box Model
    • Padding

    4 Answers

  • Mahmoud Nasser
    Mahmoud Nasser
    5,507 Points

    using percetage in padding css

    Posted September 18, 2018 10:18am by Mahmoud Nasser
    Mahmoud Nasser
    5,507 Points
    • CSS
    • CSS Basics (2014)
    • The Box Model
    • Padding

    1 Answer

  • David Regel
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    David Regel
    Full Stack JavaScript Techdegree Student 5,504 Points

    What is the basis of our 18% and 24% padding we use in this course?

    Posted June 19, 2018 9:31pm by David Regel
    .a{fill-rule:evenodd;}techdegree
    David Regel
    Full Stack JavaScript Techdegree Student 5,504 Points
    • CSS
    • CSS Basics (2014)
    • The Box Model
    • Padding

    2 Answers

  • Albert Lee
    PLUS
    Albert Lee
    Courses Plus Student 1,896 Points

    what's the "div" mean in video?

    Posted March 17, 2018 9:41am by Albert Lee
    Albert Lee
    Courses Plus Student 1,896 Points
    • CSS
    • CSS Basics (2014)
    • The Box Model
    • Padding

    1 Answer

  • babasariffodeen
    babasariffodeen
    6,475 Points

    Padding as a percentage of the elements width. Does this mean relative to the content width of the element only?

    Posted March 3, 2018 12:12pm by babasariffodeen
    babasariffodeen
    6,475 Points
    • CSS
    • CSS Basics (2014)
    • The Box Model
    • Padding

    1 Answer

  • Andrei Li
    Andrei Li
    34,486 Points

    If all is in percents what is the base for dimensions of the padding? Is it content box that defines base for padding?

    Posted December 4, 2017 10:54am by Andrei Li
    Andrei Li
    34,486 Points
    • CSS
    • CSS Basics (2014)
    • The Box Model
    • Padding

    2 Answers

  • Vanessa Clifton
    Vanessa Clifton
    1,415 Points

    18/24?

    Posted August 18, 2017 12:53am by Vanessa Clifton
    Vanessa Clifton
    1,415 Points
    • CSS
    • CSS Basics (2014)
    • The Box Model
    • Padding

    2 Answers

  • haakon Guttormsen
    haakon Guttormsen
    2,157 Points

    comments

    Posted August 7, 2017 3:01pm by haakon Guttormsen
    haakon Guttormsen
    2,157 Points
    • CSS
    • CSS Basics (2014)
    • The Box Model
    • Padding

    2 Answers

  • Emmanuel Quinones
    Emmanuel Quinones
    7,394 Points

    Black background for wildlife div element is not showing...

    Posted July 28, 2017 6:59pm by Emmanuel Quinones
    Emmanuel Quinones
    7,394 Points
    • CSS
    • CSS Basics (2014)
    • The Box Model
    • Padding

    2 Answers

  • Edward McEntire
    Edward McEntire
    8,667 Points

    How do I restart the work space with a fresh work space without my changes. I delete some stuff by mistake??

    Posted July 8, 2017 9:04pm by Edward McEntire
    Edward McEntire
    8,667 Points
    • CSS
    • CSS Basics (2014)
    • The Box Model
    • Padding

    2 Answers

  • Edward McEntire
    Edward McEntire
    8,667 Points

    when I save the work space it does not as his does. there isn't any background-color.

    Posted July 8, 2017 8:51pm by Edward McEntire
    Edward McEntire
    8,667 Points
    • CSS
    • CSS Basics (2014)
    • The Box Model
    • Padding

    0 Answers

  • Daniel Meza
    Daniel Meza
    2,353 Points

    error loading this resource? video isnt playing. basic css padding, how do i fix this problem?

    Posted February 28, 2017 6:53pm by Daniel Meza
    Daniel Meza
    2,353 Points
    • CSS
    • CSS Basics (2014)
    • The Box Model
    • Padding

    1 Answer

  • Paula Mourad
    Paula Mourad
    5,154 Points

    Padding % and EM

    Posted September 21, 2016 6:44pm by Paula Mourad
    Paula Mourad
    5,154 Points
    • CSS
    • CSS Basics (2014)
    • The Box Model
    • Padding

    4 Answers

  • Michelle Rosenstock
    PLUS
    Michelle Rosenstock
    Courses Plus Student 3,256 Points

    Black background NOT showing for Wildlife div class

    Posted August 8, 2016 7:30pm by Michelle Rosenstock
    Michelle Rosenstock
    Courses Plus Student 3,256 Points
    • CSS
    • CSS Basics (2014)
    • The Box Model
    • Padding

    4 Answers

  • Brack Slater
    Brack Slater
    2,144 Points

    For some reason it wont let me open my workspace for this exercise? Anyone else with the same issue?

    Posted April 15, 2016 2:51pm by Brack Slater
    Brack Slater
    2,144 Points
    • CSS
    • CSS Basics (2014)
    • The Box Model
    • Padding

    1 Answer

  • Gabriel Ward
    Gabriel Ward
    20,222 Points

    margins and padding

    Posted February 17, 2016 10:34pm by Gabriel Ward
    Gabriel Ward
    20,222 Points
    • CSS
    • CSS Basics (2014)
    • The Box Model
    • Padding

    3 Answers

  • Andy Saini
    Andy Saini
    5,287 Points

    Padding for grouped block elements?

    Posted November 5, 2015 8:06am by Andy Saini
    Andy Saini
    5,287 Points
    • CSS
    • CSS Basics (2014)
    • The Box Model
    • Padding

    2 Answers

  • Sahar Nasiri
    Sahar Nasiri
    7,454 Points

    Percentage size of paddings

    Posted November 3, 2015 5:52am by Sahar Nasiri
    Sahar Nasiri
    7,454 Points
    • CSS
    • CSS Basics (2014)
    • The Box Model
    • Padding

    2 Answers

  • Sahar Nasiri
    Sahar Nasiri
    7,454 Points

    Percentage size of paddings

    Posted November 3, 2015 5:52am by Sahar Nasiri
    Sahar Nasiri
    7,454 Points
    • CSS
    • CSS Basics (2014)
    • The Box Model
    • Padding

    3 Answers

  • Ian Rowse
    Ian Rowse
    1,815 Points

    When I inputted the padding, the wildlife div disappeared

    Posted October 17, 2015 6:53pm by Ian Rowse
    Ian Rowse
    1,815 Points
    • CSS
    • CSS Basics (2014)
    • The Box Model
    • Padding

    4 Answers

  • nelsongonzalezarango
    nelsongonzalezarango
    6,385 Points

    What extension are you using to tell you the window size?

    Posted September 6, 2015 5:31am by nelsongonzalezarango
    nelsongonzalezarango
    6,385 Points
    • CSS
    • CSS Basics (2014)
    • The Box Model
    • Padding

    3 Answers

  • Jonathan Rodríguez Ferreira
    Jonathan Rodríguez Ferreira
    6,075 Points

    Can I create a padding property with three values?

    Posted April 8, 2015 11:45pm by Jonathan Rodríguez Ferreira
    Jonathan Rodríguez Ferreira
    6,075 Points
    • CSS
    • CSS Basics (2014)
    • The Box Model
    • Padding

    2 Answers

  • hamadsharif
    hamadsharif
    1,232 Points

    How do you arrive at the padding percentage values shown in this video?

    Posted March 8, 2015 2:47am by hamadsharif
    hamadsharif
    1,232 Points
    • CSS
    • CSS Basics (2014)
    • The Box Model
    • Padding

    4 Answers

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

    set padding as percent value: the percentage is relative to the width of the box? But what's the width of the box?

    Posted February 6, 2015 4:46pm by tian jin
    tian jin
    Courses Plus Student 5,162 Points
    • CSS
    • CSS Basics (2014)
    • The Box Model
    • Padding

    1 Answer

  • Andrea Faciane
    Andrea Faciane
    10,042 Points

    Stage 4 The Box Model

    Posted December 30, 2014 7:34pm by Andrea Faciane
    Andrea Faciane
    10,042 Points
    • CSS
    • CSS Basics (2014)
    • The Box Model
    • Padding

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