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
marsha spell
Courses Plus Student 5,555 Pointsplzz help
Challenge task 1 of 3 Add a padding of 20px to the top and bottom of the div with the class box. Then, add 40 pixels of padding to the left and right sides. here what code i used
box. { padding-top: 20px; padding-bottom: 20px; <div class="box"> padding-left: 40px; padding-right: 40px; { it keeps saying bummer! not sure what i'm doing wrong? any help would be great:-)
4 Answers
James Barnett
39,199 Pointsmarsha spell - When referencing classes in CSS the . (period) goes before the class name not afterward.
it's .box not box.
Brad Van Skyhawk
28,489 PointsI think it should be:
.box { padding-top: 20px; padding-bottom: 20px; padding-left: 40px; padding-right: 40px; }
marsha spell
Courses Plus Student 5,555 Pointsthanks got it!
marsha spell
Courses Plus Student 5,555 Pointsoh ok got ya thanks!