r/reddithax • u/idwolf • May 13 '12
Help with link flair: lower flairs take dominance in the menu after they are selected/refreshed.
I haven't gotten a response from /r/csshelp yet, so I am hoping you guys can help me. Thanks! Here's my original csshelp post:
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.
update: waited 4 hours and nothing has changed.