r/csshelp • • Jun 08 '13

Resolved What am I doing wrong with flairs?

So i followed the 7 step guide,

http://www.reddit.com/r/csshelp/comments/m59kf/

I got this spritesheet, http://imgur.com/912mmsJ

and this code,

.flairselector .customizer { display: none !important; }

.flair { border: none !important; padding:0px; background: url(%%spritesheet%%) no-repeat -9999px -9999px; display:inline-block; }

.flair-Flair1{ background-position: 0 0; width: 45px; height: 43px; }

.flair-Flair2{ background-position: 0 -93px; width: 45px; height: 50px; }

.flair-Flair3{ background-position: 0 -193px; width: 45px; height: 44px; }

.flair-Flair5{ background-position: 0 -287px; width: 35px; height: 33px; }

**>#container li {

background: url(spritesheet.png) no-repeat top left; }**

I removed the bold part, the site that gives me the file says to put it at the end but I kept getting an error and the guide didnt mention adding it. Should I keep it?

I uploaded the spritesheet on the bottom of the stylesheet editor

I added the code in the stylesheet

I went to edit flair and tried to add them as user flair templates but they just dont appear.

8 Upvotes

4 comments sorted by

1

u/chrome1453 Jun 09 '13

Try just pasting this in:

.flairselector .customizer {
display: none !important;
}

.flair {
border: none !important;
padding:0px;
background: url(%%spritesheet.png%%) no-repeat -9999px -9999px;
display:inline-block;
}

.flair-IMAGE{ background-position: 0 0; height: 16px; }

.flair-Flair1{ background-position: 0 0; width: 45px; height: 43px; }
.flair-Flair2{ background-position: 0 -93px; width: 45px; height: 50px; }
.flair-Flair3{ background-position: 0 -193px; width: 45px; height: 44px; }
.flair-Flair5{ background-position: 0 -287px; width: 35px; height: 33px; }

2

u/xSiIver Jun 09 '13 edited Jun 09 '13

I tried it but it didnt work.

This is what I'm getting, http://imgur.com/YNGRwLA

I tried pasting your code at the end of the stylesheet and at the beginning. Maybe im doing something wrong when trying to 'activate' flairs?

edit: here's the stylesheet http://imgur.com/XOLDxDo

1

u/[deleted] Jun 09 '13

Flairs are case sensitive. Add a capital 'F' in that box and they should work.

2

u/xSiIver Jun 09 '13

Thank you!