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 144,810 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. :)