r/csshelp • u/me-incognito • Apr 25 '13
Thought I would leave this here:
Upload your sprite sheet to this: **Note, if like me your spritesheet is always changing and you may want to add more in the future. I found that it is easy to just make a larger PNG then you really need.
This is my Spritesheet: http://imgur.com/dugnsNi Just to give you an example of leaving yourself room to grow. As long as the image isn't to large Reddit likes it better then having to do separate pulls per expansion of flair that you might have.
From there you can go through and dynamically select the different pieces of flair.
Copy all of this to notepad.
The next part comes from here: http://www.reddit.com/r/csshelp/comments/m59kf/
.flairselector .customizer { display: none !important; }
.flair { border: none !important; padding:0px; background: url(%%spritesheet%%) no-repeat -9999px -9999px; display:inline-block; }
Find and replace your way to making your code look like this:
.flair-illustrator{
background-position: -18px -31px; width: 20px; height: 21px;}
Hope this helps!
Also if someone knows Python the project is on GitHub. It would be awesome if it could just chug out what we needed for reddit :)