How to override thumbnails for unachieved badges
-
Good day, and happy Thanksgiving!
I would like to display a different badge icon for unachieved badges. So far I am using the following css to do this, which works ONLY for badges that are my standard 100px by 100x size. Is there a way to change the image in a way that would work for any image size?
.unearned-badge { -moz-box-sizing: border-box; box-sizing: border-box; background: url(" https://example.com/unearned-badge.png ") no-repeat; background-size: 100px 100px; width: 100px; /* Width of new image */ height: 100px; /* Height of new image */ padding-left: 100px; /* Equal to width of new image */ }
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to override thumbnails for unachieved badges’ is closed to new replies.