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 Layout CSS Layout Techniques Display

"The yellow is there, but the padding and width aren't affecting my boxes.6:34"

But you can see on video and I checked it myself that padding does indeed work for these inline elements?!

2 Answers

Austin Whipple
Austin Whipple
29,725 Points

Hi Andrzej,

Margin and padding on inline elements is very tricky. Here's an older community article that has some very helpful information in it.

It could be an error in the code. Try putting you're code in the verifier. If that doesn't work, then try saving and minimizing you're page