I have a container that has an image that needs to be centered and multiple buttons that should wrap around the container.
Floating left or right gives the correct behavior but the goal would be to have it float center horizontally and vertically in the middle. I’ve included a picture of the desired result
2
Answers
I hope it helps you
The dynamic generation of items makes the whole logic and approach much more complicated and brings a lot of caveats. This is a very non-trival task with many questions and edge cases.
See the code below.
Important: see the snippet below in full-page view mode.
However, there are a few limitations and things to mention:
Please let me know if this helps.