Scrollbars use in css

scroll

The size of the containing element does not change, but the scrollbars are added to allow the user to scroll to see the content.

auto

The purpose is the same as scroll, but the scrollbar will be shown only if the content does overflow.

Example


div {
width: 350px;
height: 350px;
overflow: scroll;
}

 
Posted in CSS

COMMENTS

Leave a Comment