5
I have a list that when you click on an item it receives a Focus and appears a div with information. One of this information has a link but when I click on it, my div closes and does not open the page.
Follows the code...
FULL HTML:
<html>
<head>
<style>
li .faq-content-answer{
display: none;
padding: 0px;
}
li:focus .faq-content-answer{
display: block;
}
.faq-content-answer p{
display: none;
}
li:focus .faq-content-answer p{
display: block;
padding: 18px 0 20px 0;
}
</style>
</head>
<body>
<ul>
<li tabindex="0">Como me cadastrar?
<div class="faq-content-answer"><p>Para se cadastrar, <a target="_blank" href="link-clicavel">Clique aqui</a>
Nós enviaremos um e-mail com as suas informações e se elas estiverem corretas, é só confirmar a aproveitar!</p>
</div>
</li>
</ul>
<body>
</html>
How can I make href work when I click?
What would be "link-clickable" inside href? shouldn’t be the way you want to go?
– MagicHat
Exactly! I put a loose link to show that it doesn’t work.
– Ikaro Pinheiro
Can you put the complete code within the specific location for the codes ? <> not in the {}
– MagicHat
Edited post. HTML looks like this msm.
– Ikaro Pinheiro
Check it out @Ikaro Pinheiro...
– MagicHat
funfou... Let me know if I can’t sleep...
– MagicHat
hehe, it worked, yeah, vlw bro.
– Ikaro Pinheiro