+ 9
How do i align many elements in a horizontal line and if overflowed, they should scroll...
Please help me i tried a lot about this situation
7 Réponses
+ 9
.hor-scroll {
display: flex;
overflow-x: auto;
}
.hor-scroll > * {
flex: none;
}
https://code.sololearn.com/W0ceELlLGdg2/?ref=app
+ 5
Anas Yes, It is needed but I just said about overflow 😊, I think you found an answer, Calvin already answer......
+ 4
Make:: overflow: auto;
Which make it scroll when it is necessary.....
If you want to make scroll, You need to make :: overflow: scroll;
Which makes the elements to be scrolled.....
🤔May help you.....:-)
+ 3
Here is some information.
https://www.w3schools.com/css/css_overflow.asp
+ 3
Yeah I tried it in VS Code it works
They are right ▶️
+ 2
֎₳¥Ʉ$Ħ֎ so display and position is not necessary??
+ 2
Thanks a lot Calviղ