W
W
wbrapist2017-08-05 21:31:41
css
wbrapist, 2017-08-05 21:31:41

How to arrange elements with a width of 100% on the same line in a fixed container?

I have a fixed width container with overflow: scroll. It has several blocks with a width of 100%. How to arrange these blocks on the same line?
Tried float: left and display: inline-block - doesn't work, because elements do not fit on one line. I tried flex, which I'm still new to, the first two DIVs don't display correctly. How to solve this problem?
Not working example on flex: https://jsfiddle.net/hnvxf0yc/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iBird Rose, 2017-08-05
@wbrapist

remove .wrapper style justify-content: center; ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question