Skip to content
Advertisement

How to make my buttons shift downwards when my table grows

I have an issue with my HTML, where when I go to add more than 3 new assets into my table, the buttons below (Add new asset, save and submit) are not being pushed down. Is this a flex issue and how would I go about solving this? I put all of my buttons into a div because I found this aligned my page better. But when I did not have my buttons in a div, it works. I am reframing my code to have more div’s to keep everything contained.

JavaScript
JavaScript
JavaScript

Advertisement

Answer

You had added heights for both .flex and .flex-box. This was forcing them to stay the size they were.

Also, you didn’t need the form tags for each row.

JavaScript
JavaScript
JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement