| unique.wonders. ( @ 2008-03-16 16:08:00 |
| Entry tags: | !tutorial, *account level: plus/paid/perm, user: uw |
TUTORIAL: [CSS] Custom User Info Icons
Preview
» link
Difficulty Level

Instructions
» All users: copy and paste the code given in the yellow box below into Customize Journal Theme → Custom CSS → the big box at the bottom.
» Paid users: you can also use this in set custom_css or function Page::print_custom_head.
» Read the code for further instructions on how to change settings and data. Instructions are in green. Settings and data you can change are in red.
» Enjoy! :)
» Paid users: you can also use this in set custom_css or function Page::print_custom_head.
» Read the code for further instructions on how to change settings and data. Instructions are in green. Settings and data you can change are in red.
» Enjoy! :)
Known Issue
» The code does not work in older versions of Internet Explorer (such as IE6) and may not work in some other old browsers.
/* CUSTOM USER INFO ICONS */
/* component_help/1199663.html */
/* Edit the URLs in background image */
/* Edit padding to match the size of your image */
/* First number is height, second number is width */
/* Icon for users */
img[src*="userinfo.gif"] {
width: 0;
height: 0;
background-repeat: no-repeat;
background-image: url(http://yoururl) !important;
padding: 16px 16px 0 0 !important;
}
/* Icon for communities */
img[src*="community.gif"] {
width: 0;
height: 0;
background-repeat: no-repeat;
background-image: url(http://yoururl) !important;
padding: 16px 16px 0 0 !important;
}
/* Icon for sponsored communities */
img[src*="sponcomm.gif"] {
width: 0;
height: 0;
background-repeat: no-repeat;
background-image: url(http://yoururl) !important;
padding: 16px 16px 0 0 !important;
}
/* Icon for partnered communities */
img[src*="partnercomm.gif"] {
width: 0;
height: 0;
background-repeat: no-repeat;
background-image: url(http://yoururl) !important;
padding: 16px 16px 0 0 !important;
}
/* Icon for syndicated feeds */
img[src*="syndicated.gif"] {
width: 0;
height: 0;
background-repeat: no-repeat;
background-image: url(http://yoururl) !important;
padding: 16px 16px 0 0 !important;
}
/* Icon for Open ID users */
img[src*="openid-profile.gif"] {
width: 0;
height: 0;
background-repeat: no-repeat;
background-image: url(http://yoururl) !important;
padding: 16px 16px 0 0 !important;
}
/* Icon for the news community */
img[src*="newsinfo.gif"] {
width: 0;
height: 0;
background-repeat: no-repeat;
background-image: url(http://yoururl) !important;
padding: 16px 16px 0 0 !important;
}To customize the user icon displayed in the username text field of the comment reply box, add this:
input[style*="url(http://l-stat.livejournal.com/img/userinfo.gif)"] {
background-image: url(http://yoururl) !important;
}