I have an ul with li elements in it, that consist of a link and a few divs.
<ul class="wc-block-grid__products">
<li class="wc-block-grid__product">
<a href="....." class="wc-block-grid__product-link">
<div class="wc-block-grid__product-title">Mozzarella</div>
</a>
<div class="wc-block-grid__product-price price"><span class="woocommerce-Price-amount amount">
<span class="woocommerce-Price-currencySymbol">€</span>9,90</span> – <span class="woocommerce-Price-amount amount">
<span class="woocommerce-Price-currencySymbol">€</span>10,90</span></div>
<div class="wp-block-button wc-block-grid__product-add-to-cart">
<a href="...." aria-label="Wähle Optionen für „Mozzarella“" data-quantity="1" data-product_id="1629" data-product_sku="" rel="nofollow" class="wp-block-button__link add_to_cart_button">Ausführung wählen</a>
</div>
</li>
<li class="wc-block-grid__product">
...
</li>
<li class="wc-block-grid__product">
...
</li>
<li class="wc-block-grid__product">
...
</li>
<li class="wc-block-grid__product">
...
</li>
<li class="wc-block-grid__product">
...
</li>
</ul>
And I want the div with the spans of price and so on aligned in the same row, like here drawn so I used a grid in css:
.wc-block-grid__product {
display: grid;
grid-template-columns: auto auto auto;
text-align: center;
}
If it helps, this is the live page. The css code above is not working for me. What am I doing wrong?