Trying to create an image grid with my HTML code:
Check it out here: https://www.w3schools.com/howto/howto_css_image_grid_responsive.asp
Struggling to get the images to display in the center of the screen even with align-items or align-self not working:
<div style="align-items: center;align-content: center;align-self: center;">
<%foreach $datalist as $row%>
<div class="row">
<div class="column">
<img src="shared/img/<%$row.image_name%>">
<p><%$row.title%></p>
</div>
<div class="column">
<img src="shared/img/<%$row.image_name%>">
<p><%$row.title%%</p>
</div>
<div class="column">
<img src="shared/img/<%$row.image_name%>">
<p><%$row.title%></p>
</div>
<div class="column">
<img src="shared/img/<%$row.image_name%>">
<p><%$row.title%></p>
</div>
</div>
<%/foreach%>
</div>
Result:
https://i.sstatic.net/fixfn.png
Curious why align items center isn't working?
Any suggestions on how to center display on the screen?