22 June 2012 @ 01:33 pm
How to make your userheads work correctly  
Okay, after helping lots of people with their userheads I think I have now identified every problem and how to fix it.

1. To get the lines working you need to have !important before every semicolon.

2. I've seen codes where width and height are in the general .ljuser img code, but not in the ones specifically for user and community. Always add width and height!

3. Don't use the general .ljuser img code. If you do, you'll only get the standard userheads over your custom ones.

4. You could have old URLs for your user and community userhead codes. Start your codes with .ljuser img[src*="userinfo.gif"] and .ljuser img[src*="community.gif"]. No matter where LJ put their userheads, the asterisks make sure that your override works as long as LJ keeps the pictures named userinfo.gif and community.gif.


In conclusion, this is what your userhead codes should look like:

.ljuser img[src*="userinfo.gif"] {
width: 0px !important;
height: 0px !important;
padding: YOUR NUMBERS HERE !important;
background: url(YOUR IMAGE URL) no-repeat !important;
}

.ljuser img[src*="community.gif"] {
width: 0px !important;
height: 0px !important;
padding: YOUR NUMBERS HERE !important;
background: url(YOUR IMAGE URL) no-repeat !important;
}
 
 
( Post a new comment )
[identity profile] justfever.livejournal.com on June 23rd, 2012 08:36 pm (UTC)
I've been searching for this solutions of the troublesome userheads...
so, thank you so much :)
(Reply) (Link)