Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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
220,425 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 :)