I've been struggling to make use of the ::before pseudo-element in CSS for a hover effect. Despite going through various tutorials on YouTube, I can't seem to get it to work properly. I'm not sure why this isn't working as expected.
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
</head>
<body>
<center>
<a href = "https://www.google.com/search?q=Get+rickrolled"><button id = "Btn" class = "Btn" >Rickroll</button></a>
<style>
.Btn::Before {
Content: '';
Position: Absolute;
Border-Width: 5px;
Border-Color: Cyan;
Width: 150px;
Height: 50px;
Font-Size: 30px;
Font: Comic;
Align-Items: Center;
Margin-Top: 50px;
Z-Index: -1;
transition: 0.6s;
}
</style>
</body>
</html>