codedamn

Use the flex-shrink Property to Shrink Items

Created by Codedamn about a year ago

0

No description provided

2 Comments

    0

    What's wrong with this code. Please help ????

    @ahmedali882007

    Ahmed Ali

    @ahmedali882007

    0
    <style> #box-container { display: flex; height: 500px; } #box-1 { background-color: dodgerblue; width: 100%; height: 200px; flex-shrink: 1; } #box-2 { background-color: orangered; width: 100%; height: 200px; flex-shrink: 2; } </style> <div id="box-container"> <div id="box-1"></div> <div id="box-2"></div> </div>
    @ahmedali882007

    Ahmed Ali

    @ahmedali882007

Your comment