How can I make it able to scroll in a container?

How can I make it able to scroll in a container?

  

How can I make my List scroll when it's elements increase? I just want it scroll in its container, and I don't want the container's size changes

Solution

Hi Tenchi,

You should set a max width and/or max heigth of the container with css. Additionally, you should use the CSS overflow property to make the container scrollable.

example:

.ScrollableContainer {
   max-width: 300px;
   max-height: 300px;
   overflow: auto;
}


More info on overflow:
https://www.w3schools.com/cssref/pr_pos_overflow.asp

Sam.

Solution

Oh! Thank you. I did it using "overflow: scroll;"