0

 #box-container {
    display: flex;
    height: 500px;
  }
  
  #box-1 {
    background-color: dodgerblue;
    height: 200px;
    flex-grow:1;
    flex-shrink:2;

  }
  
  #box-2 {
    background-color: orangered;
    height: 200px;
    flex-grow:2;
    flex-shrink:4;
    flex-basis:200px;
<div id="box-container">
  <div id="box-1"></div>
  <div id="box-2"></div>
</div>

Hello , could someone explain me why doesn't flex-shrink work in here? I kept trying to change values but it seems like nothing changes. I'm pretty sure there isn't any typo. Thanks in advance.

Temani Afif
  • 245,468
  • 26
  • 309
  • 415
edga9966
  • 77
  • 1
  • 2
  • 8

0 Answers0