I have a grid layout with a large image on left and two stacked images in the right column. on a full layout, it looks like I want.
I used the following layout. I have images instead of colors, so have left the image settings in the css. I am trying to place block3 in the first position on a responsive layout (max width 768) and then stack the three images in one column. is this possible?
.container {
display: grid;
grid-template-columns: repeat(3, 1fr);
height: 600px;
width: 100%
}
.container div {
color: #fff;
text-align: center;
}
.block1 {
grid-row: 1 / 5;
grid-column: 1 / 3;
background-color: green;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
.block2 {
grid-row: 1 / 3;
grid-column: 3 / 3;
background-color: blue;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
height: 300px;
}
.block3 {
grid-row: 3 / 5;
grid-column: 3 / 3;
background-color: coral;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
height: 300px;
}
<div class="container">
<div class="block1"></div>
<div class="block2"></div>
<div class="block3"></div>
</div>