Why a div child forces the parent to grow and ignore flex 1?
I have a parent div called main , which contains two children : c1 and c2 . -c1 has a fixed width of 200px . -c2 is set to flex : 1 and also has width : 100 % . Inside c2 , there is another child element . When this child becomes visible , it forces c2 to grow , ignoring the flex : 1 behavior . If I add overflow : hidden to c2 , everything works as expected . Without it , c2 doesn ’t respect the flex : 1 . Do you know why this happens ?