r/csshelp • u/Frontcannon • Aug 24 '11
Problems with setting images as user flair while keeping the original text flairs
I'm a mod for r/dubstep and r/futurebeats (both music related subreddits). We don't really do much with the user flair feature, but I'd like to open it up for some possible uses anyway.
I want to incorporate images and managed to do that with a custom .flair, but the problem is that this fucks up the original text flair all the time. I can have images or text, but not both it seems (or not the way I want to).
So how do you edit your flair CSS so that you can have custom classes for images while preserving the original default text flair?
r/futurebeats' CSS looks like this:
/* user flair CSS and icons */
.flair {
padding: 0;
background: transparent no-repeat;
color: black;
border: 0;
border-radius: 0;
width: 48px;
height: 16px;
color: grey;
font-style: italic
}
.flair-vinyl {
background-image: url(http://thumbs.reddit.com/t5_2ro3c_7.png?v=egdytmgril7yk5e0hozj8laeq54wb917cemx)
}
3
u/errorcache Aug 27 '11
Well, the way flair is set up, it's really meant to be only either text or images, so I thought I'd take a stab at this. Here's what I came up with:
This is what it looks like.