CSS Property:

flex-shrink

Result:

1
2
3

CSS Code:

#myDiv {
                
background-color:#F7CFB6;
flex-basis: 300px;
flex-grow:1;
}
Click the property values above to see the result
W3Docs.com-Play it
Do you find this helpful?