Answer the question
In order to leave comments, you need to log in
How to push the last element to the edge of flexbox?
Hello, there was a situation when you need to make a block with goods
. Everything will align using flexbox
.bookWrap{
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}
.book{
margin: 10px;
border: 1px solid #000;
width: 350px;
}
Answer the question
In order to leave comments, you need to log in
In this context, no way.
Only if through :last-child and margin.
Or get rid of space-around and do calc(width - indent * 2) a la like this:
Above is a typical implementation of such things on flex.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question