I have a large div with a grid display, consisting of 3 rows and 2 columns.
I am attempting to include text directly below the photo within each cell.
This is what my code looks like:
<div class="arrange-fixes">
<div class="categories">
<div id="operating-systems"> </div>
<p>Operating system installation and optimization</p>
</div>
<div class="categories"></div>
<div class="categories"></div>
<div class="categories"></div>
<div class="categories"></div>
<div class="categories"></div>
</div>
.arrange-fixes{
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr 1fr;
min-height:800px;
width: 550px;
justify-items: center;
align-items: center;
}
.categories{
display: grid;
//background-color: lime;
width: 225px;
height: 162px;
border-radius: 15px;
border-width: 5px;
border-style: double;
border-color: #85c236;
box-shadow: inset 0px 0px 18px 8px rgb(198, 230, 156);
background-image: url("/images/fixes/windows.jpg");
background-position: center;
background-size: contain;
}
I want the text to be displayed underneath the picture within my div, not on top of it. Can anyone help me achieve this?