I have a very specific UX request. I have four links within a container, one next to each other in one row, separated by a vertical line.
Example:
Link one | Link two | Link three | Link four
This is the layout if they all fit within the container. Once the user decrease the screen size and the links don't fit anymore, I want to switch the layout to 2 rows and 2 columns. And to have a horizontal divider between the rows. Also, the existence of links is variable. If there are just three links, the third link is extended over the whole bottom row.
Example:
Link one | Link two
Link three | Link four
Or
Link one | Link two
Link three
I would like to achieve this behaviour without using JS if possible. Ideally by using Flexbox or Bootstrap. Is it possible?