Answer the question
In order to leave comments, you need to log in
Is it possible to use flex-wrap with a rigid container?
Hello, please tell me how to use flexbox, provided that there is a container whose width is set in pixels. For example code:
<section>
<div class="container">
<div class="wrap-list">
<div class="wrap-item"></div>
<div class="wrap-item"></div>
<div class="wrap-item"></div>
<div class="wrap-item"></div>
</div>
</div>
</section>
.container{
width: 1100px;
margin: 0 auto;
}
.wrap-list{
width: 100%;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
.wrap-item{
width: 250px;
background-color: #000;
height: 100px;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question