I created a grid consisting of 3 columns and 4 rows. The last column is completely covered by an image (».box-image«, not as a background image), whereby this image and the column in which it is located should not extend the height of the other columns.
.grid{
display: grid;
grid-template-columns: 25% 25% 1fr;
grid-template-rows: auto 1fr 1fr 50px;
}
.grid .box-image{
grid-column: 3;
grid-row: 1 / 5;
}
.grid .box-image img{
object-fit: cover;
width: 100%;
height: 100%;
}
How do I determine that .box-image does not increase the height of the grid (1fr 1fr), and only assumes the height determined by the other content?