Text in a flex container doesn’t wrap in IE11

Consider the following snippet: .parent { display: flex; flex-direction: column; width: 400px; border: 1px solid red; align-items: center; } .child { border: 1px solid blue; } <div class=”parent”> <div class=”child”> Lorem Ipsum is simply dummy text of the printing and typesetting industry </div> <div class=”child”> Lorem Ipsum is simply dummy text of the printing and … Read more

What does flex: 1 mean?

As we all know, the flex property is a shorthand for the flex-grow, flex-shrink, and the flex-basis properties. Its default value is 0 1 auto, which means flex-grow: 0; flex-shrink: 1; flex-basis: auto; but I’ve noticed, in many places flex: 1 is used. Is it shorthand for 1 1 auto or 1 0 auto? I … Read more

When flexbox items wrap in column mode, container does not grow its width

I am working on a nested flexbox layout which should work as follows: The outermost level (ul#main) is a horizontal list that must expand to the right when more items are added to it. If it grows too big, there should be a horizontal scroll bar. #main { display: flex; flex-direction: row; flex-wrap: nowrap; overflow-x: … Read more

How to stretch children to fill cross-axis?

I have a left-right flexbox: .wrapper { display: flex; flex-direction: row; align-items: stretch; width: 100%; height: 70vh; min-height: 325px; max-height:570px; } <div class=”wrapper”> <div class=”left”>Left</div> <div class=”right”>Right</div> </div> The problem is that the right child is not behaving responsively. To be specific, I want it to fill the height of the wrapper. How to accomplish … Read more

Why can’t be flex containers?

I tried to style a fieldset element with display: flex and display: inline-flex. However, it didn’t work: flex behaved like block, and inline-flex behaved like inline-block. This happens both on Firefox and Chrome, but strangely it works on IE. Is it a bug? I couldn’t find that fieldset should have any special behavior, neither in … Read more