I have a P tag that I made hidden with css. When I access the hover event of the div, I make this tag appear, but then the link doesn't work. The link that is exactly inside the tag. What am I doing wrong?
.card-wrapper p:nth-child(2){
margin: 0;
visibility: visible;
}
.card-wrapper p:nth-child(3){
margin: 0;
visibility: hidden;
opacity: 0;
transition: 0.3s;
}
.card-wrapper h2{
font-size: 40px;
text-transform: uppercase;
letter-spacing: 3px;
margin: 0;
transition: 0.3s;
}
.card:hover > .card-wrapper::before{
height: 130px;
width: 350px;
opacity: 1;
box-shadow: 3px 2px 2px rgb(85, 81, 81);
}
.card:hover > .card-wrapper p:nth-child(3){
visibility: visible;
opacity: 1;
}
.card:hover > .card-wrapper p:nth-child(2){
visibility: hidden;
opacity: 0;
}
.card:hover > .card-wrapper a{
visibility: visible;
}
.card:hover > .card-wrapper h2{
text-shadow: 1px 1px 2px rgb(59, 57, 57);
}
<div >
<div >
<h2>Github</h2>
<p>Veja meus projetos!</p>
<p>
<a href="https://www.google.com.br/"
title="Acessar GitHub">
Ao clicar aqui vc vai acessar meus projetos!
</a>
</p>
</div>
</div>
CodePudding user response:
your link will be working, if you open your link another window, just simply use this code, Hope it will help you
<a href="https://www.google.com.br/"
title="Acessar GitHub" target="_blank">
Ao clicar aqui vc vai acessar meus projetos!
</a>
CodePudding user response:
I achieved I just needed to set the position parameter to relative.
.card:hover > .card-wrapper a {
position: relative;
}