I currently have a html file that contain such div:
div.myClass:visited {
background-color: red;
}
<div class="myClass" href="link">
</div>
What I am trying to do here is to have div direct to the given link and if the link is visited already, div background-color changes to red. The link does work fine, however changing the background color when the link is visited does not work. Is there a way to change the background color of div that contains a visited link? Thank you!