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 trialMUZ140520 Tinashe Veremu
5,675 PointsCreate a new rule that targets the primary-content class. Add a padding property that sets the top padding to 25 pixels
how
1 Answer
Eric Buchmann
15,080 Points.primary-content {padding-top:25px;}
/* OR */
.primary-content {padding:25px 0 0 0;}
The .primary-content bit targets the class primary-content and then you can either do padding-top:25px; if you just want to select the padding-top or you can do it a bit shorthand and do padding:25px 0 0 0 (you can even take the last 0 off). The four sets of numbers mean the four sides of the box, starting with the top then going right, bottom, left.