This code is working properly:
HTML:
<span class="counter" >test</span>
CSS:
.counter:hover:after{
content: "hello";
}
Result:
testhello
However, I am trying to replace 'test' with 'hello'. I attempted the following code but it did not work:
CSS:
.counter:hover{
content: "goodbye";
}
Expected result:
goodbye