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

General Discussion

Width, Height and Overflow Properties Box Model Quiz [RESOLVED]

Having a bit of trouble completing the Box Model Quiz 5/5 in CSS Foundations Second Edition.

Last instruction is "Finally, add an overflow property that automatically provides scrollbars if and where they are needed." My code comes back as incorrect:

/* Complete the challenge by writing CSS below */ nav a {display: inline-block; width: 100px;} .main {box-sizing: border-box; width: 400px; max-height: 150px; overflow: scroll; }

Any ideas? Thanks! :)

3 Answers

Disregard, discovered overflow needed to be auto rather than scroll.

thanks so much, greatly apreciated

Thanks Timothy, I spent ages trying to place overflow:scroll into P etc. Glad someone else had the problem ;)

For what it's worth (1 year later), I made the same mistake.

Its July 2014...and I thank you for your posts :D I was lost as well.

I love it when people solve their own issues. Rock on with your bad self :guitar:

nav a {display: inline-block; width: 100px;} .main {box-sizing: border-box; width: 400px; max-height: 150px; overflow: auto; }