Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Véronique Bellamy
20,810 PointsIssue with part three of the width, height and overflow properties code challenge
Hello, I am having some issues with part three of the width, height and overflow properties code challenge (at http://teamtreehouse.com/library/css-foundations/the-box-model/width-height-and-overflow-properties ). You see, the task is "Currently, the width of the div with the class 'main' is set to 400px, but the padding applied is adding an extra 40 pixels to its total width. Add a property that forces the padding into the width of the div.". I add "box-sizing: border-box;" to the code and it tells me "Bummer! Check the box-sizing property in your CSS." Can anyone tell me what I am doing wrong?
1 Answer
Adam Sackfield
Courses Plus Student 19,663 PointsYou are doing the correct thing. Ensure you are adding it to the class "main" not the nav a part.
Véronique Bellamy
20,810 PointsVéronique Bellamy
20,810 PointsI have. :)
Véronique Bellamy
20,810 PointsVéronique Bellamy
20,810 PointsOh. Doi. I realised what I did wrong now. ^_^;;
Adam Sackfield
Courses Plus Student 19,663 PointsAdam Sackfield
Courses Plus Student 19,663 PointsEasy to make mistakes!