3375
Views
2
Comments
Solved
How can I make it able to scroll in a container?
Question

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

2024-02-27 12-57-22
Sam Rijkers
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.

2018-07-18 00-31-01
tenchi sou

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

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.