I have three divs in a row. The first should be a fixed with, the second should expand until it hits a "max-width", and the third div should take up the remaining space. It works correctly until the third div has text that reaches the entire width. Instead of the text just wrapping it begins making the second div smaller.
<div id="container"><div id="one"> sdfsdf</div><div id="two"> fghfgh fghfghd sdf sdf sdf ssdf sdf gh</div><div id="three"> sdfsdfsdfsdfsfd sdf sdf sdf sdf sdfwef sdfwefs df </div></div>#container{ background-color: red; display: flex; height: 100px; width: 400px;}#one{ background-color: blue; flex-grow: 1; width:60px;}#two{ background-color: red; max-width: 100px}#three{ background-color: green; flex-grow: 1;}You can find a jsfiddle here.