Need help with achieving a responsive layout using CSS grid. The design should be as seen in the image link below for resolutions over 900px:-
https://i.sstatic.net/QaFub.jpg
For resolutions lower than 900px, the layout should switch to resemble this https://i.sstatic.net/fGqCC.jpg
I have attempted the following so far:
.container {
display: grid;
grid-template-columns: 250px auto 250px;
grid-column-gap: 1rem;
}
The current code successfully creates the first image layout but I'm struggling with adapting it for the second layout under 900px resolution.
Any suggestions on how to modify the CSS grid to achieve the desired layout as shown in the images?
Feel free to check out my code here: jsfiddle