html - css change background-position for a:visited -
i know may sound stupid i'm trying change background position 'anchor element
' no result.
the html
looks this:
<a href="http://google.com/" class="first-link">link</a><a href="http://google.com/" class="second-link"></a>
for .second-link:visited
want change background position
, have no idea why doesn't work.
update
the css .second-link
looks this:
.second-link { background: url(../images/sprite.png) no-repeat -13px -124px; height: 20px; width: 15px; display: inline-block; margin: 2px 0 -6px 2px; }
there no content inside a
tag second-link
class. therefore not visible on page both width , height 0px
. adding content content inside fix it, or if don't want content inside it, you'd have set a
tag display: inline-block;
, set width , height on ensure visible on page.
Comments
Post a Comment