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 Treehouse Club: CSS My First Web Page Comments, Selectors, and Syntax

Konstantinos Parsalidis
Konstantinos Parsalidis
1,662 Points

Changing padding values

Hello there!

In the original CSS file, the padding values are 20px 20px

When I change the first value I can see the change, however; when I change the second value nothing seems to change. Any ideas?

Thanks!

2 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,443 Points

Hi Konstantinos. Welcome to Treehouse! :)

Without seeing your code, I can't be sure...

However, there are times, depending on the layout, container, position, element, etc, where altering the padding may not produce any noticeable change.

If you want to post your code (or a snapshot of your Workspace), someone will be able to give a more detailed and specific answer. :)

Posting Code to the Community

Workspace Snapshots

:dizzy:

Nishant Kumar
Nishant Kumar
1,179 Points

Hello Konstantinos. The padding values 20px 20px represents vertical and horizontal spacing values respectively. Try keeping one constant and changing another to higher value (say 80) and vice verca (For instance change it to 20px 20000px, save your changes and refresh the page in browser. You may need to scroll down your web browser's page in this case horizontally, while if you change your value to 20000px 20px, save your css work and refresh the browser's page, you'll have to scroll your page vertically to see the content.) You'll see the result and get an idea. Let me know if it works. :)