It works on Firefox but on Chrome doesn't. What I'm trying to do is that a card applies the opacity property when hovering on that card.
HTML file:
<div class="col mb-4">
<a class="textoc"href="user/terapeuticos">
<div class="card carta">
<img src="../../../assets/imagenes/Fondo1.jpg" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title subtitulo2 text-center rounded">Masajes terapéuticos</h5>
<p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
</div>
</div>
</a>
</div>
CSS file:
.textoc:link
{
opacity: 1!important;
text-decoration: none;
color:black;
background-color: rgba(255, 255, 255, 1);
}
.textoc:hover
{
opacity: 0.5!important;
background-color: rgba(255, 255, 255, 0.5);
}
.textoc:visited
{
color: black;
}
.carta
{
border-style: solid;
border-color: #F3329F;
border-width: 2px;
}
.subtitulo2
{
color:#F3329F;
border-style: solid;
border-color: #F3329F;
border-width: 1px;
}
I tried to solve it by adding background-color: rgba(255, 255, 255, 0.5); but nothing changed.
Pd: I'm using Boostrap 4 framework.