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 How to Make a Website CSS: Cascading Style Sheets Take a Mobile-First Approach

background color for some reason my preview does not show the orange background that is applied in the "div wrapper"

I think i applied the <div> operation exactly as you did. However, the modification is not appearing on my preview(even after refresh). i created the wrapper in the same way. Not sure what im doing wrong here...

is there something in the other css file that needs to be overridden in order to apply the background color?

2 Answers

Steven Horowitz
Steven Horowitz
6,966 Points

Your wrapper div needs to have dimensions (ex. width) defined in your main.css file in order to display the background color that you've already declared. Do you have any dimension declarations for your wrapper?

Thank you for your reply. Actually i realized i hadnt yet created the link in the head.