Hi Aaron,
Define the below mentioned CSS style to the encapsulated parent div/Container
overflow-y: auto;
height: 100px;
If you don't know the height of the container and you want to show vertical scrollbar when the container reaches a fixed height say 100px
, use max-height
instead of height
property.
Note: If you give overflow-y:auto;
instead of overflow: auto;
, because this makes the element to scroll only vertical but not horizontal.
Hope this helps you!
Regards,
Benjith Sam