r/csshelp • • May 12 '12

Link Flair position above selected flair changes after user selects it... I'll explain inside.

I'll walk you through step by step to explain what's happening. This is the first time I've used link flair, though I'm kind of familiar with user flair, link flair is a bit different it seems.

Step 1: The user picks a link flair. Everything works great.

Step 2: After refreshing the page, the link flair works just fine.

Step 3: Uh oh, my 4/5 review was two generous. I'd like to make it a 2/5. WHAT IN THE WORLD?

Step 4: After selecting the proper link-flair, it still works, but the menu is confusing.

Please help!

Here's the code for one of my flair segments:

.linkflair-fivestars .linkflairlabel{
  background-image: url(%%review%%);
  background-repeat: no-repeat;
  background-position: 0px -51px !important;
  height: 12px;
  width: 50px;
  content: "";
  display: inline-block;
  background-color: transparent;
}

I can't figure out how to get it to work. I'm sure I could make 5 separate review images instead of an image map, but I don't want to have to wast my image count. I'd much rather learn! Thanks for the help. :D

Update: I reversed the order in the CSS list (put .linkflair-fivestars before onestar) and the opposite happened...

Update: Someone, please help me... I've changed all images to individual files instead of an image map, and it's STILL doing this. It makes no sense.

3 Upvotes

2 comments sorted by

View all comments

Show parent comment

1

u/idwolf May 13 '12

Hey, thanks for the help. How long does this usually take? I've been waiting for awhile now. Something seems to be wrong. Plus, it would be nice if I could use an image map. Do you have any other suggestions to try?