Код: Выделить всё
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
background: #222;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}
.full{
width: 100%;
height: 90vh;
background: #eee;
}
.limited{
max-width: 90vw;
background: #f4f4f5;
display: flex;
flex-direction: row;
gap: 30px;
height: 100%;
align-items: center;
margin: auto;
}
.column1{
background: teal;
width: 200px;
height: 100%;
flex-shrink: 0;
}
.column2{
background: turquoise;
height: 100%;
width: 100%;
}
.wrapper{
display: flex;
flex-wrap: wrap;
gap: 5px;
background: forestgreen;
width: fit-content;
}
.el{
width: 200px;
height: 100px;
background: crimson;
flex-shrink: 0;
}< /code>
Здесь есть код.
Подробнее здесь: https://stackoverflow.com/questions/793 ... h-to-adapt