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 trialUpeksha Liyanaarachchi
11,018 PointsCSS padding
It said to edit the padding in links to 10px. When I did - padding: 10px;} it says its wrong. what am I doing wrong?
Upeksha Liyanaarachchi
11,018 Pointstask - edit the css stylesheet to change links to have a padding of 10px
When I edit the padding in links - padding: 10px;} it says its wrong. what did I do wrong?
1 Answer
Steven Parker
229,785 PointsWhat you have shown is only part of a CSS style (or is that the problem?). So for now, I can give you some general hints.
You said you were asked to "edit the padding in links to 10px". Links are usually implemented using anchor (<a>) tags. So if you created CSS to add padding (in all directions) of 10px it would likely look like this:
a { padding: 10px; }
If that doesn't get you through the challenge, try telling us exactly which course, challenge, and task you are working on, and show us all of the answer you gave.
hum4n01d
25,493 PointsThat sums it up :)
hum4n01d
25,493 Pointshum4n01d
25,493 PointsCan you please post your full code so that I and other treehouse members can understand what you mean