The following image shows the result. In the first div element, content is not clipped and scroll bars are not added. In the second div element, content that exceeds the dimensions of the object is not shown. In the third div element, content is clipped and scroll bars are added. In the fourth div element, content is clipped and scrolling is added only when necessary: