My HTML layout for a music player using Bootstrap 5 is coming along nicely. One part of the player I'm working on involves displaying information about the current pattern in a song.
Here's what I have in mind. I want to create a layout with two columns. The left column will contain an ordered list of pattern numbers displayed vertically. This column should be quite narrow.
The right column will be the pattern data section, which will show the data of the currently playing pattern. This column may be wider depending on the data.
My goal is to have these two columns displayed side by side. However, in cases where there's a lot of data for a pattern or if the viewport is small, the second column might drop below the first. I want to ensure that the columns always remain next to each other, with the first column taking up only the necessary width and the second column occupying the rest of the space.
Below is a snippet to give you an idea. If you resize your browser window, you'll notice that the pattern-data column moves below the order-list column. My aim is to keep them adjacent to each other.
How can I tweak the code so that #pattern-data
stays to the right of #order-list
at all times, even when the viewport is small or the table has numerous columns?