responsive problem

Hi guys, I do not know how to handle this layout (the image). I try to use grid-template-areas. But I don't know how to make the C block just take the space of its height and the A block take the rest height of the left column. I'm not farmiliar with grid layout. Can anyone help me? Thank you
No description
2 Replies
Hidi_
Hidi_15h ago
You could set 2 rows, first one will be 1fr and the second one will be like 150px (whatever height u want).
.grid {
grid-template-areas:
'A B'
'C B'
}
.grid {
grid-template-areas:
'A B'
'C B'
}
For the tablet the bottom row will change it C C instead of C B And probs set up 2 columns of both 1fr And assign the naming used inside your grid-template-areas to the correct elements
Chris Bolson
Chris Bolson15h ago
A quick demo to demonstrate what Hidi_ has already outlined: https://codepen.io/cbolson/pen/mdNZKpO
Want results from more Discord servers?
Add your server