Hey mate, nice job !
About your question, you can use display: grid
instead of flex
property on desktop. It's really not complicated once you did it one time, have a look :
#first-card {
grid-area: first-card;
}
#second-card {
grid-area: second-card;
}
#third-card {
grid-area: third-card;
}
#fourth-card {
grid-area: fourth-card;
}
...and then, the magic happen !
.wrapper {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr 1fr 1fr;
grid-template-areas:
". second-card ."
"first-card second-card fourth-card"
"first-card third-card fourth-card"
". third-card .";
}
You can custom your own grids on Layoutit. If you want to see this grid in application, here is my submission.
Hope this comment helped you ! Have a great day, keep up the good work !
Marked as helpful
@SujanPasa
Posted
@FlorianJourde Thank you I will definitely have a look into that.
@SujanPasa You're welcome !