Within this flex container that displays children in a row with wrapping enabled, most components look good side by side. However, there is one component - an input slider that I want to place on its own row, taking up the entire width of the container.
I can set the slider to 100% width, but then margin and padding issues arise, causing horizontal scrollbars. Using overflow: hidden would solve this, but it means losing some content.
So, how can I instruct the flex container to move this specific child to its own row?
- Parent: display flex, row wrap
- Child: flex 1 0 auto
While using JavaScript is an option, I'd prefer not to go down that route for this particular case.