This 'div' is 500 pixels high and 500 pixels high. Try resizing your browser so that it is less than 500 pixels. You will notice that no scrollbars appear. This is because we've applied overflow:hidden
to the body
tag.
If we were to remove overflow:hidden
, scrollbars would automatically appear once the content became too large.