I've been attempting to customize the styling of <a href=""></a>
elements on my webpage. Unfortunately, the code I've tried isn't producing the desired results.
Here is the HTML:
<div class="class-name">
The quick brown <a href="//example.com">fox</a>
</div>
And here is the SCSS:
.class-name{
@include mixin-name(1.7rem 5rem, 1.5rem, 300, $fade-white);
}
a{
&:link{
color: $fade-white;
&:visited{
color: $white;
text-decoration: none;
opacity: 0.42;
}
}
&:hover{
opacity: 0.7;
text-decoration: underline;
}
&:active{
opacity: 1;
text-decoration: none;
}
}
Despite the CSS styling, the underline effect is not showing when hovering over the link. Additionally, the code works correctly in Safari but not in Chrome. Can anyone provide insights into what might be causing this issue?