Currently, I am working on creating an auto-complete box with multi-select options. My layout consists of a flex parent container where child elements are wrapping. Here is a preview:
https://i.sstatic.net/29s4X.png
I am looking to add another child element that sticks to the far right side of the container. I have attempted to add this new element in a JS fiddle, but unfortunately, it does not align to the right as intended.
https://jsfiddle.net/rgxph5j3/
https://i.sstatic.net/quBg4.png
Despite trying various suggestions from sources like How to Right-align flex item?, I haven't been successful at achieving the desired alignment for my additional element.
Some of the properties I've experimented with include: 'X'
margin-left:auto
text-align: right;
justify-content: flex-end;
flex: 1 1 auto;
If you have any useful tips or recommendations, please feel free to share them. Your assistance would be greatly appreciated.