@rafdidact
Posted
Hey, Daniel!
You could use Grid CSS to achieve this type of layout. Assign a grid-area
to each one of your modals and then specify their position in a div
element that wraps them all four with a grid-template-areas
property. Use dots for spaces.
Like so:
.modal-wrapper {
grid-template-areas:
". b ."
"a b d"
"a c d"
". c .";
}
.modal.light-blue {
grid-area: a;
}
.modal.red {
grid-area: b;
}
.modal.yellow {
grid-area: c;
}
.modal.blue {
grid-area: d;
}
You can also check my solution's code for reference. Hope it helps.
Marked as helpful