D
D
dev_guf2016-04-12 17:44:54
css
dev_guf, 2016-04-12 17:44:54

Why does a fixed width block break flex layout?

Hello! Help me to understand. There is a layout built using flex technology. Three columns, 2 fixed widths (right and left sidebar) and fluid content. Everything functions and everything works well. But when a fixed-width block appears in the content, and its width is greater than the content width, the layout breaks and horizontal scrolling appears.
Here's how layout breaks:
92ce38aba217409486c033ac2bc5931a.png
And here's how without this block:
fb27d01594b142aa9a758b116324bf01.png
Also, if you fasten a slider like this , the layout also breaks.
This is what it looks like (chrome)
https://jsbin.com/bovibeniga/edit?html,css,output

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail, 2016-04-12
Chirskiy @chirskiy_mixail

You would have posted the code, you never know what you made up for there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question