Having some trouble centering an image within a 'display: grid' layout.
I attempted to use 'align-items' but it didn't seem to work either.
Code:
<section style="padding-top: 30px;">
<h4 style="text-transform:uppercase; display: inline-block; font-weight: bold;">Possible Agreements:</h4>
<div style="display: grid; grid-template-columns: 120px repeat(1, 1fr); grid-gap:30px; padding-top: 30px;">
<div style="background-color: lightgray; width: 100%; height: 100%;">
<img src="icons/money_icon.png" style="margin-left: auto; margin-right: auto; display: block; width: 50px;">
</div>
<div>
<p style="font-weight:bold;">1. Mandatory:</p>
<p>text</p>
<p style="font-weight:bold;">2. Discretionary:</p>
<p>text</p>
</div>
</div>
</section>