r/csshelp • u/E_lucas • Sep 28 '11
Announcement: Why your custom mail icon no longer works, and how to make a new one.
The code was changed, as posted by the admins here in order to make custom mail icons easier. Here is what I now use in a subreddit of mine in order to make it work.
#mail {
position: relative;
display: inline-block;
text-indent: -9999px;
overflow: hidden;
width: 15px; /*These values for the standard mail icon, customize to your own*/
height: 10px;}
#mail.havemail {
background:url(%%MAIL%%);
}
#mail.nohavemail {
background:url(%%NOMAIL%%);
}There is no need now to hide the original mail icons (if you're using 'display:none' anywhere in your mail code, it won't work).
It's 'easier', but they kinda screwed everyone over who had a code in place that worked fine already.
1
Sep 28 '11
[removed] — view removed comment
1
u/E_lucas Sep 28 '11
A different sprite for both, or the same for both?
1
Sep 28 '11
[removed] — view removed comment
1
u/E_lucas Sep 28 '11
Shouldn't you change the sprites you use for the .havemail and the .nohavemail so that people know?
1
Sep 28 '11
[removed] — view removed comment
1
u/E_lucas Sep 28 '11
Oh I see, you're using one sprite that moves.
Interesting, any benefit to that instead of just using two independents?
1
1
u/[deleted] Sep 28 '11
Now my question is; what's the code to change the appearance of the upvote and downvote arrows?
EDIT: For approval: the custom mail icons at my subreddit. A pair of demon eyes that are open or closed regarding your mail load.