No code needed
Add multiple containers with content into a parent container. Select the parent, then use the flexbox controls on the Design pane to magically make all the containers adapt to the avilable space. Flexbox controls will make your life so much easier as it will do the positioning for you. You can learn more about Flexbox in the help guide.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas et metus.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas et metus.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas et metus.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas et metus.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam conubia nostra, per inceptos himenaeos.
Praesent mauris. Fusce nec tellus sed augue semper porta. Mauris massa. Vestibulum lacinia arcu eget nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra.
Vestibulum lacinia arcu eget nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.
Duis semper consectetur lacinia. In hac habitasse platea dictumst. Curabitur gravida dui consectetur nisl ornare, sit amet tempor risus ultrices. Vivamus sit amet consectetur metus.
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac.
Nunc sed diam finibus neque vestibulum eleifend. Vivamus nibh tellus.
Fusce et iaculis turpis. Duis ultrices nec leo at congue. Praesent euismod urna pretium.
Vivamus ultrices auctor magna, ac mattis justo cursus interdum.
Nunc facilisis ornare ipsum in iaculis. Praesent velit dui, accumsan id nisl et porttitor quam.