I'm currently struggling with implementing a tooltip for the "Back-end" button on my webpage. Despite my efforts, the tooltip effect fails to display over the button, and I'm at a loss as to why.
Below is the code snippet I am working with:
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/style/interface1.css">
<title>interface</title>
<style>
/* Styles for the "Back-end" button */
.back-end_link{
display: flex;
}
.back-end_link button{
background-color: rgba(0, 0, 0, 0.993);
color: aliceblue;
border: transparent;
transition: 0.5s;
font-size: 30px;
box-shadow: inset 0 0 0 0 rgb(0, 0, 0);
}
.back-end_link button:hover{
border: none;
background-color: rgba(255, 255, 255, 0.949);
color: rgba(0, 0, 0, 0.485);
text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.373);
transform: scale(0.9);
letter-spacing: 3px;
box-shadow: inset 0 0 10px rgb(255, 255, 255), 0 0 40px rgb(255, 255, 255), 0 0 80px rgb(255, 255,
255);
}
.details-back-end{
color: #fff;
visibility: hidden;
opacity: 0;
}
.back-end_link:hover .details-back-end{
visibility: visible;
opacity: 1;
}
.details{
font-family: "Kanit", sans-serif;
display: flex;
position: absolute;
justify-content: center;
align-items: center;
width: 1100px;
color: aliceblue;
text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.575);
}
</style>
</head>
<body>
<div class="container">
<div class="login-registro">
<div class="login">
<button id="login-button">
<a href="login.html">
login
</a>
</button>
</div>
<div class="register">
<button class="register-button">
<a href="registro.html">
registre-se
</a>
</button>
</div>
</div><!--div login-registro-->
<div class="front-back">
<div class="front-end_link">
<a href="#">
<button>
FRONT-END
</button>
</a>
</div>
<div class="back-end_link">
<a href="#">
<button>
BACK-END
</button>
</a>
</div>
</div><!--div front-back-->
<div class="details">
<p class="details-front-end">
DETAILS ABOUT FRONT-END
</p>
<p class="details-back-end">
DETAILS ABOUT BACK-END
</p>
</div>
</div>
</div>
</body>
</body>
</html>
I've experimented with different solutions to rectify this issue, but unfortunately, the tooltip remains invisible when hovering over the "Back-end" button.
If you have any insights or suggestions on where I might be going wrong, I would immensely appreciate your assistance!
Thank you.