r/csshelp • • Apr 17 '13

image flair?

Hi, I've seen alot of subreddits that have a small image of their flair instead of simple text. And I've been google'ing like crazy with no results. Anyone able to explain this to me in baby language?

Best regards

6 Upvotes

29 comments sorted by

3

u/[deleted] Apr 17 '13

You don't need to follow them word by word though. Try my tutorials, although you'll only need the first one, unless you also want them to show text:

http://imgur.com/a/BSkIF

http://imgur.com/a/7ayjM

2

u/whilly2dope Apr 17 '13

Thanks man, much appreciated!

1

u/whilly2dope Apr 18 '13

well, this didnt actually help me that much... Im way too dumb for this.

1

u/Cryptonaut Apr 18 '13

Haha, alright. Take a look at /r/Dota2, is that the kind of thing you want?

1

u/whilly2dope Apr 30 '13

Yes, something like that or the flairs at /r/vgstreams !

2

u/PhillyGreg Apr 18 '13

This is really useful! Do you have any idea how to make the text appear and disappear when you mouse over the image.

1

u/[deleted] Apr 18 '13

For what subreddit? If its for the Philadelphia subreddit, you have way too much excess code or is that just the test sub? If it is just tell me the actual sub. I'll redo the flair codes if you want.

2

u/PhillyGreg Apr 18 '13

no its for /r/fcs. I've wanted to have text flair that appears when using the alien blue app. The current hover text flair I use is CSS content. I know I have to use the flair text template, but I'm lost in regards to hiding the text when also using image flair.

1

u/[deleted] Apr 18 '13

Mind sending me the zip file you used for the sprite?

2

u/PhillyGreg Apr 18 '13

Do you need the png files zipped. Here is the spritesheet

1

u/[deleted] Apr 18 '13

I need the zip file or else I will need to manually cut out each picture. Although, I'll do it tomorrow. Just get it to me by tomorrow :)

2

u/PhillyGreg Apr 18 '13

Hey, I appreciate the help. I hope this works. Here are the sprites

1

u/[deleted] Apr 18 '13

Thanks! I'll do it, but to get the text working it will be a little different now. I'll show you tomorrow

1

u/[deleted] Apr 18 '13

Wait no, I need the zip file you uploaded to generate the spritesheet. If you don't have it that's ok I guess. It'll just take me a little longer to cut them out. It should have every single flair individually seperated

2

u/PhillyGreg Apr 18 '13

sure, where can i send it

→ More replies (0)

2

u/NightmareSyx Apr 19 '13

This was a big help over at /r/NewYorkMets, though one of the longer names in the bar is messed up. Can you help?

1

u/[deleted] Apr 19 '13

Can you show me an example :)?

2

u/NightmareSyx Apr 19 '13

http://i.imgur.com/Auuqh8c.png

Not sure what I'm doing wrong.

1

u/[deleted] Apr 19 '13

I just tested it and it worked fine, Maybe try going and clicking save on that specific one again: http://i.imgur.com/I4fpWck.png

2

u/NightmareSyx Apr 19 '13

Oh wow. I feel dumb. Thanks!

Do you know of a way that I change the font style? I have some custom fonts on my computer that I'd like to try with the flair.

1

u/[deleted] Apr 19 '13 edited Apr 20 '13

Well, I didn't do good explaining but do something like this:

.flair{border:none!important;top:20px;padding:0px;line-height:26px;font-size:12px;color:blue;background:url(%%spritesheet5%%) no-repeat;display:inline-block}

And change it to:

.flair{border:none!important;top:20px;padding:0px;line-height:26px;font-size:12px;color:blue;background:url(%%spritesheet5%%) no-repeat;display:inline-block;font-family:Arial}

Just change Arial to whatever font you choose

1

u/[deleted] Apr 20 '13

Hey, I just noticed that some comments run into the sidebar. Try this code, maybe it will help

.comment {
overflow:hidden;
}

2

u/NightmareSyx Apr 20 '13

Where should I paste it within the stylesheet?

1

u/[deleted] Apr 20 '13

Any place really.

2

u/Tr1gg3rH4ppy Aug 25 '13

Hopefully you catch this. The first image you have of the tutorial is not working. Is there any chance you can reupload the image to imgur? Thanks!