Auto Scrollbar Example

This 'div' is 400 pixels high and 400 pixels high. If your browser is maximized to larger than 400x400, no scrollbars should be appearing. Try resizing your browser so that it is less than 400 pixels. Scrollbars should appear - they will only appear when they're needed. This is because we've applied overflow:auto to the html tag.

Remove Scrollbar Code