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 trialFares Ksebati
7,426 Points'overflow: scroll' function not working?
The code challenge prompts: "add an overflow property that automatically provides scrollbars if and where they are needed."
The prior 4 prompts were coded correctly , I simply added the 'overflow' line for this prompt, and I keep getting an error. Any ideas?
nav a {
display: inline-block;
width: 100px;
}
.main {
max-width: 400px;
-moz-box-sizing: border-box;
box-sizing: border-box;
max-height: 150px;
overflow: scroll;
}
2 Answers
Ryan Blackwell
19,118 PointsHere's a clue:
Finally, add an overflow property that automatically provides scrollbars if and where they are needed.
Fares Ksebati
7,426 PointsThanks for the hint. Just what I needed to listen for when I re watched the video!