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 Basics Getting Started with CSS Layout Creating a Sticky Footer

What is implied by a vertical scroll?

.

3 Answers

Steven Parker
Steven Parker
231,269 Points

That would generally be true for the window itself as long as that behavior has not been overridden.

But you can also have scrollbars on elements. An "auto" scrollbar will appear anytime the content is greater than the nearest containing element, which could potentially be smaller (or larger) than the viewport.

There are also property settings that causes the scrollbar to be visible at all times.

.

Steven Parker
Steven Parker
231,269 Points

I don't recall all the examples in the course, but it's certainly more common for responsive designs to result in a vertical scrollbar but not a horizontal one.

.

Steven Parker
Steven Parker
231,269 Points

What I was trying to explain the first time is that there are many causes for a scroll bar, and some are completely unrelated to the viewport size. So having one doesn't imply anything you can rely on.

But you're right, the "viewport" is the visible area of the page, which varies with the device.

.

Steven Parker
Steven Parker
231,269 Points

I don't know what you are referring to by "this example".