I have a fixed size div say 500px. It has a smaller div inside it. when the number of divs increases It starts to give a horizontal scroll. I want it to have a vertical scroll inside. I tried doing this:
width: 1509px;
overflow-x: hidden;
overflow-y: scroll;
this didn't work so i hope you guys can help me out.
thanks in advance!
I have found my mistake:
display: flex;
flex-wrap: wrap;
height: 265px;
margin-bottom: 12px;
overflow-y: scroll;
I was not setting flex-wrap.