Positioning last div at end, when using flex and flex-wrap
Hi!
See screenshot for reference.
I'm banging my head against this one. I have a flex container with flex-wrap enabled. I want the last button (class "close-button") to show at the bottom right corner of the flex-container. The number of buttons in the container can be anything.
I also want the container height to only be the needed height. So if there are only 3 room buttons, it should only be high enough to show the three buttons plus the close buttons.
I can't get this to work without setting the container to a fixed height.
Any input is appreciated.
Thanks in advance.
PS. This is my first post, so please let me know if this should be structured in better way
Simplified fiddle:
https://shorturl.at/buyA3
See screenshot for reference.
I'm banging my head against this one. I have a flex container with flex-wrap enabled. I want the last button (class "close-button") to show at the bottom right corner of the flex-container. The number of buttons in the container can be anything.
I also want the container height to only be the needed height. So if there are only 3 room buttons, it should only be high enough to show the three buttons plus the close buttons.
I can't get this to work without setting the container to a fixed height.
Any input is appreciated.
Thanks in advance.
PS. This is my first post, so please let me know if this should be structured in better way
Simplified fiddle:
https://shorturl.at/buyA3

