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 Basics (2014) The Box Model Padding

Ian Rowse
Ian Rowse
1,815 Points

When I inputted the padding, the wildlife div disappeared

When I inputted the padding, the wildlife div disappeared. I tried previewing in a different browser, and the problem remained. I'm sure that my code was identical to what he had.

4 Answers

Ian Rowse
Ian Rowse
1,815 Points

I figured out what was wrong, I'd forgotten to put the semicolon after the hexadecimal above it.

If you show us your code perhaps it will be easier to troubleshoot your issue.

**Make sure you didn't set your display property to value of "none" ...if I remember correctly Guil was showing an example of how to make your wildlife div disappear using something like the code below. If you did not remove this example while following along it is possible that your .wildlife div would still be missing from your page.

           .wildlife {
              display: none;
}
Raphael Reiter
Raphael Reiter
6,820 Points

did the same to me ! but i didnt forget a semi colon...

here's my code... thanks

.wildlife { color: white; background-color: #434a52; padding-top: 100px; padding-right: 120px; padding-bottom: 100px; padding-left: 120px; }

Raphael Reiter
Raphael Reiter
6,820 Points

ok sorry everyone, i got the problem. for that video, we had to open a new workspace that had been updated, and in the index.html file, for some reason, Guil commented that whole div out... if anyone encounters this problem again, check the commented parts in your index file.