I want to change the background of div
, when the person is visiting that link.
I tried to use visited
but it is not working.
HTML
<div class="e divFloatLeaft">
<h:link styleClass="menu" value="Página Principal" outcome="index" />
</div>
CSS
.e:hover {
background-image:url(./img/fundo-laranja.jpg) !important;
background-repeat: repeat-x;
}
.e:visited {
background-image:url(./img/fundo-laranja.jpg) !important;
background-repeat: repeat-x;
}