Hey there, I'm dealing with two HTML divs that both have the same price class of "uvp uvp-price".
<div class="product-detail-price-container">
<meta itemprop="price" content="119.8">
<p class="uvp uvp-price">UVP: 50,00 €</p>
<p class="twp-product-detail-price" style="margin-top: -52px;">EK: 29.95 €</p>
</div>
and
<div class="product-price-info">
<div class="tw-price-unit"></div>
<p class="uvp uvp-price">UVP: 50,00 €</p>
</div>
Now, I only want to add a padding-top of 15px to the first uvp uvp-price class that is inside the product-detail-price-container div.
I attempted the following CSS but it's not working:
.product-detail-price-container:has(.uvp-price) {
padding-top: 15px;
}
Can someone assist me in figuring out what I am doing wrong? Thank you!