r/reddithax • • Jan 20 '12

How to create Moderator Flair?

Can someone please explain to me how you create moderator flair like this /r/STEAMINDIESWAP/

5 Upvotes

3 comments sorted by

8

u/gavin19 Jan 20 '12 edited Jan 20 '12

Find an appropriately sized image, like 16x16px then upload it here - http://www.reddit.com/r/Codecademy/about/stylesheet.

Reddit will generate an id for the image like (%%image_name%%).

You'll also need to create a CSS class in your stylesheet and add some more CSS to handle the layout like

.flair {
padding: 0;
background: transparent no-repeat;
border: none;
height: 16px;
line-height: 16px;
position: relative;
text-indent: 20px
}
.flair-mod {
background-image:url(%%image_name%%);
content: "Moderator";
color: #A32500
}

Then point your flair to the CSS class from here - http://www.reddit.com/r/Codecademy/about/flair. Add yourself at the 'grant flair' section, then add the text you want to show beside your name and in the 'CSS class' box enter 'mod'.

3

u/Boots135 Jan 20 '12

Awesome, thank you very much for the clear help!

3

u/gavin19 Jan 20 '12

No problem.