1
I’m trying to alter the bottom of the div
, when the person is visiting that link.
I tried to use the visited
but it’s 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;
}
then I would be
.div:visited
?– João
No, no. You need to use the
:visited
in the hyperlink element, not in thediv
.– Guilherme Portela
Hmmm and how it would apply the effect in the div if it would be using the link event?
– João
You could use Javascript, but with CSS it is not possible.
– Guilherme Portela
OK thanks, I’ll see if I can find something in jquery to help me with that.
– João