Answer the question
In order to leave comments, you need to log in
How to make a horizontal scroll of blocks in two rows?
How to make it filled with blocks only up to the second row (does not go to the third) , and then turn on the horizontal scroll? (blocks can be different sizes) Maybe there is a plugin, or js code, or just css there is an option.
Answer the question
In order to leave comments, you need to log in
Parent div
.parent-div {
display: flex;
}
.parent-div .first-line {
width: 100%;
height: [ровно по высоте строки с элементами]
}
.parent-div .second-line {
width: calc(100% + 100%);
height: [ровно по высоте элементов];
overflow: hidden;
overflow-x: scroll [или auto];
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question