Currently, I am utilizing Bootstrap 4 in conjunction with flexbox. Within a container-fluid
, I have an alphabetically ordered list of items with the classes
col-xs-12 col-sm-6 col-md-4 col-xl-3
. These columns are responsive and as the number of items is variable, the height of the container cannot be predetermined.
The layout can consist of either 1, 2, 3, or 4 columns, and all rows have been designed to be consistently equal in width.
If you would like to see a demonstration of this setup, please visit: https://codepen.io/troutr/pen/XKQYjV
I have also provided an image showcasing the desired order: https://i.sstatic.net/aUmj6.jpg
Considering user experience, it would be beneficial if the items were organized top-to-bottom, left-to-right. Is there a way to achieve this using CSS? My initial thoughts revolve around utilizing media queries and the order
property within flexbox.