I am facing a challenge in changing the color of two specific characters when hovering over them inside a textbox that is styled purely with CSS.
As the content is created using only CSS, I am unable to use style tags to accomplish this and feel stuck.
My goal is to have the "<" and ">" characters turn red when hovered over within the #CODESTUDENT:hover:after code.
#CODESTUDENT:after {
content: "CODE STUDENT";
}
#CODESTUDENT:hover:after {
content: "<CODE STUDENT>";
}
<li id="CODESTUDENT"></li>
I have attempted to add color properties but have not been successful in resolving this issue.