Along with :hover
, we can change
the appearance of links depending
on other user actions. We can change
the link styling for when
the user clicks the link or based
on whether the link was previously
visited or not:
:visited
- Used if the link
was previously visited.
Since we show our previews inside an iframe, the visited styles will not apply. So we have added a link with href=""
to emulate the visited behavior.
:active
- Applied when the
link is just clicked