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

CSS

CSS 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?

Can you please post your full code so that I and other treehouse members can understand what you mean

task - 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
Steven Parker
229,785 Points

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

That sums it up :)