Play with the size of div boxes to see how it works

overflow-y:scroll

This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test.

overflow-y:hidden