i have trouble adding multifunctionality to my href.
This is my code:
HTML:
<html>
<head>
<link rel="stylesheet" type="text/css" href="css-style.css">
<title></title>
</head>
<body>
<h1>Hello HTML!</h1>
<p>I am Hristiqn. I am from <a class="magic" href="https://en.wikipedia.org/wiki/Neverland">Neverland</a></p>
</body>
</html>
CSS:
a.magic:visited {font-size: 300px;
background: -webkit-linear-gradient(gold,green);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;}
a.magic:active {font-size: 300px;
background: -webkit-linear-gradient(red,green);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;}
a.magic:hover { font-size: 60px;
background: -webkit-linear-gradient(white, green);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;}
Right now I'm trying to do that by setting the needed style properties to a class, called magic, but it seems that only the :hover works. I tried to set the properties by name, but the effect was the same - only the hover works.
So i want the link button to do different things whenever i hover over it, whenever its active and so on, but it seems that only my :hover statement works and i have no idea why.
Thank you.