Answer the question
In order to leave comments, you need to log in
How to position blocks with flexbox?
Sandbox .
1) Now in my layout this select is on the right:
But when there is not enough space for it, then it goes down:
I want to make it so that when there is no space for it, it is pressed to the left side, and when there is to the right.
2) How to align this filter to the center on the mobile version? Tried different properties, but it doesn't work.
3) How to make an adaptive on this page in general and how best to position all these blocks on smaller screens?
Answer the question
In order to leave comments, you need to log in
1) Can be done with media queries
2) Add to .filter,
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question