Basically, my code automatically generates a ton of tables (not a fixed number, depends on input), and the layout by default is just vertically down, one after another.
I would like to line the tables horizontally to fill up the page’s width before moving on to the next row of tables.
For illustration purposes, it currently looks something like this:
Current
I want it to look like this:
Want
I am a beginner creating a react app. Any help would be appreciated!
So far, the closest I’ve gotten is using "float: left" but the tables align in a weird slanted way, and all my buttons float all the way to the right.
3
Answers
You can use display: flex property of CSS to the parent tag of you table.
for ex.
I hope it will give you an understanding. Thanks
Please find the code snippet below:
I hope this helps you