I encountered an issue with my CSS where it wasn't working properly. I managed to fix it by clearing the cache of my browser or using ctrl+f5
. Now the CSS is functioning, but I'm facing a problem with <a>
tags that have a specific class applied to them. Despite applying styles to the class in my source CSS file, these changes are not reflecting on the elements themselves.
Below is the code snippet:
<span id="togSpan"> <a clsss="navbarA" href="#">HOME</a><a clsss="navbarA" href="#">GENERIC</a><a clsss="navbarA" href="#">ELEMENTS</a> <i id="bars" class="fas fa-bars"></i><i id="times" class="fas fa-times"></i></span>
CSS:
.navbarA {
text-decoration: none;
font-size: 12px;
color: black;
}
.navbarA:hover {
text-decoration: none;
color: #8dda06;
}
Could this issue be related to the presence of spans
?