I try to use background image within css grid, but I cannot see the images
.firstPage {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(1, 1fr);
grid-template-areas: "homePageImage1 homePageImage2"
}
.homePageImage1 {
grid-area: homePageImage1;
background-image: url('https://postimg.cc/F12QYFjW');
width: 700px;
height: 962px;
}
.homePageImage2 {
grid-area: homePageImage2;
background-image: url("https://postimg.cc/LJQDs5Ph");
width: 666px;
height: 962px;
}
<div class="firstPage" style="width: 1366px;">
<div class="homePageImage1">
</div>
<div class="homePageImage2">
</div>
</div>
here is the fiddle: https://jsfiddle.net/flamant/09csye6f/40/