While it is functioning correctly on Firefox, there seems to be an issue with Chrome. I am attempting to have a card apply the opacity property when hovered over.
Here is the 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 attempted to address the issue by including
background-color: rgba(255, 255, 255, 0.5);
, but unfortunately saw no change in the behavior.
PS: Using Bootstrap 4 framework for this project.