0

I'm wondering if there is any way to maintain the grid layout over multiple parent divs

For example, if I have 1 parent div (red) with a 3 column layout of child divs (blue). If the 2nd row in the first parent div only has 1 child div, Could I somehow break out from the following parent div with more child elements so it continues the grid flow.

I've attached an image of the current layout:

enter image description here

And this would be the proposed layout where the child divs break out of the parent div

enter image description here

Tim
  • 77
  • 3
  • 10

1 Answers1

-1

If you dont use any Framework or Libary its a bit tricky you have to work with javascript and make some if-else statements. I think a solution for your problem can be found here.

ViLuWi
  • 307
  • 3
  • 19