Basically, I want to replicate the col-6
(or col-x
) behavior of Bootstrap
without using FlexBox
.
A div that all its children are paired and wrapped, and when once it removed, it rearranges itself.
For example, if I remove Child 2
:
--------------------------------
| Child 1 with | |
| Very long | Child 2 |
| Text | |
--------------------------------
| Child 3 | Child 4 |
--------------------------------
This should happen :
--------------------------------
| Child 1 with | |
| Very long | Child 3 |
| Text | |
--------------------------------
| Child 4 |
----------------
It's important that it works with elements of different heights!
I'm not sure what kind of code sample I can post here, I know how to do this using FlexBox but I can't use it as I'm using a PDF creating a library that doesn't fully support FlexBox, so I'm trying different approaches until I replicate what I need.