Html – Flexbox and max-width? Parent width is max-width when child is less wide
.row { display: flex; align-items: center; /* Centers items vertically */ background-color: yellow; height: 100vh; } .column { max-width: 400px; background-color: red; flex-grow: 1; } <div class="row"> <div class="column">Text</div> </div> Inside a flex box element I have a div with…