1

i have markup like

shown here

i am wondering why it seems like lines 12 & 13

.notes:link span,
.notes:visited span { ...

seems like its working

.comments span,
background-position: -16px -16px;
}
.permalink:link span,
.permalink:visited span {
background-position: -32px -16px;
}

seems like its non existent

for some reason, cssdesk seems to be down in that case code below ...

<!DOCTYPE HTML>
<html lang="en-US">
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
    .notes:link span,
    .notes:visited span, 
    .comments span,
    .permalink:link span,
    .permalink:visited span {
      background: url("http://static.tumblr.com/ikeq9mi/F6Tl4vrjj/metasprite.jpg") no-repeat;
      padding-right: 16px; /* width */
      font-size: 15px; /* height */
      margin: 0 2px;
      position: relative;
      top: -1px;
    }
    .notes:link span,
    .notes:visited span {
      background-position: 0 -16px;
    }
    .comments span,
      background-position: -16px -16px;
    }
    .permalink:link span, 
    .permalink:visited span {
      background-position: -32px -16px;
    }
    .notes:hover span,
    .notes:active span {
      background-position: 0 0;
    }
    .comments span,
      background-position: -16px 0;
    }
    .permalink:hover span,
    .permalink:active span {
      background-position: -32px 0;
    }
    </style>
</head>
<body>
<a href="{Permalink}#notes" class="notes" title="notes">{NoteCount}<span></span></a> / 
<span class="comments">
  <a href="{Permalink}#disqus_thread" class="dsq-comment-count" title="comments">Comments</a>
  <span></span>
</span> / 
<a href="{Permalink}" class="permalink" title="permalink"><span></span></a>
</body>
</html>
1
  • Better you post your HTML and CSS here. It makes it easier for us. Commented Jul 16, 2010 at 10:57

2 Answers 2

5

I think you should have

.comments span {
    background-position: -16px -16px;
}

instead of

.comments span,
    background-position: -16px -16px;
}
Sign up to request clarification or add additional context in comments.

1 Comment

+1 Quicker than I spotting this, here's the updated version: cssdesk.com/gCZu8
0

Well, the CSS you've posted is incorrect, you are missing an opening brace, things like this will cause inconsistent parsing in browsers.

.comments span,
background-position: -16px -16px;
}

should be

.comments span {
background-position: -16px -16px;
}

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.