Single post in Site Skins: How-To, and Helpful CSS
Forum Index > PokéFarm > Guides > Site Skins: How-To, and Helpful CSS >
Sorry, I thought you might mean a sprite of a specific Melanistic Pokemon. As far as I can tell, everwhere with the melan star uses <img> tags so this code should do the trick. I've replaced it with the zophan icon just for demo purposes, you can place any image you like. The expected size is 16x16 but the code will shrink any image to fit, just don't go crazy heh. You should be able to use this with a lot of similar images on site, it just gets trickier with Pokemon sprites since some of them are <img>s and some of them are technically backgrounds.
img[src*="/img/pkmn/melanistic.png"]{
height: 0px !important;
width: 16px !important;
padding-top: 16px !important;
overflow: hidden !important;
background: url("/img/zophan/zophan.png") top left no-repeat;
background-size: cover;
}