I am new to JS and styling everything but I have created a component that takes in a variety of text from a txt document as well as a slew of images.
In my app.js, I am using a loop to input all of my data and create a list of objects. When I return the list, everything displays spaced vertically, but I would like the elements to display side by side if the browser can handle it.
If I have 15 elements and 3 of them can fit side by side on the screen, it would be 3 columns of 5, otherwise 2 columns would be contain 8 elements and 7 elements and so on and so forth.
I know of both flex boxes and react grid, but after experimenting I haven't had luck.
Does anyone have any advice?