H
H
Haykeloff2020-04-28 10:05:43
css
Haykeloff, 2020-04-28 10:05:43

Css overflow in flex container?

Good afternoon. I have a flex container with buttons and a horizontal scroll ( Click ). How can I make sure that elements that do not fit on the screen are not cut off in the middle, but simply not visible?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
approximate solution, 2020-04-28
@approximate_solution

If I understood you correctly, you want buttons that do not fit into the parent to be automatically hidden and not spoil the view with a cropped piece?
Here is a similar implementation, only instead of throwing elements into a burger, you hang a property on them display: none;
https://codepen.io/lukejacksonn/pen/PwmwWV

V
Vladimir, 2020-04-28
@HistoryART

click

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question