2
I have the following code HTML
:
<li class="item produtoDesabilitado" id="1028" style="border: 2px solid rgb(255, 255, 255) !important; height: 346px; padding-bottom: 22px;">
<div class="product-image-wrapper" style="max-width:180px;">
<a title="Raio de Sol " class="product-image">
<img id="product-collection-image-1028" src="raio-sol.jpg" alt="Raio de Sol ">
<span style="" id="prodIndisponivel" class="prodIndisponivel">Produto Indisponível</span>
</a>
</div> <!-- end: product-image-wrapper -->
<h2 class="product-name"><a title="Raio de Sol ">Raio de Sol </a></h2>
<div class="price-box">
<span class="regular-price" id="product-price">
<span class="price">R$46,80</span></span>
</div>
</div>
</li>
From the class produtoDesabilitado
I insert a opacity
of 0.5 in li
as follows:
.item.produtoDesabilitado {
opacity: 0.5 !important;
}
However, the span
with the id="prodIndisponivel"
cannot "pick up" this opacity. Along with this has another however, the image I use is .jpg
and there’s no way to change it to .png
to use a background
with opacity to give this effect.
What input face are you talking about?
– Julio Henrique
@Juliohenrique É span, I was wrong when typing the question and edited correcting the error...
– Matheus Portela
But what’s right? Apply css to which/which elements?
– Leonardo Coelho
Do not apply on the LI because if you put opacity on the LI you cannot change the Opacity of anything that is inside it!
– hugocsl
On the Image, any image accepts opacity regardless of its extent. If you use it as the background of some element just put the opacity in the element in which the background was applied.
– hugocsl
@Marcelorafael really did not... I had not understood his need.
– Jorge.M
@Marcelorafael the problem is that the li ball does not get opacity
– Julio Henrique