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

Abigail Schultz
seal-mask
.a{fill-rule:evenodd;}techdegree
Abigail Schultz
Web Development Techdegree Student 3,796 Points

When placing the width and margin settings, it doesn't like the wrapper <div>, but it works under <body>, why is this?

When placing the width and margin settings, it doesn't like the wrapper <div>, but it works under <body>, why is this?

2 Answers

Rohald van Merode
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Rohald van Merode
Treehouse Staff

Hi Abigail Schultz,

Could you elaborate a bit more on what issue you're running into? I'm not really sure what you mean by placing settings that doesn't like the wrapper. Applying margin and width properties should be possible on a div in the same way as on the body tag. If you could provide a snippet of your code or the challenge that you're we can have a look at what might be causing your issue 🙂

Abigail Schultz
seal-mask
.a{fill-rule:evenodd;}techdegree
Abigail Schultz
Web Development Techdegree Student 3,796 Points

I think I figured it out. In css, I kept typing a “.” In front of body, so it wasn’t recognizing what I meant. That was all. Thank you though!