
Hello! I'm incredibly new to coding (picked it up explicitly to make a custom sheet on roll20), and am having some trouble with replicating some ideas I've found cool on other sheets -- namely, in this case, Blades in the Dark. The functionality I'd like to approach is how Blades uses their flags: when clicked, the flags change color to denote resources: It seems to me to be something along the lines of replacing one image with another when clicked -- my guess is the use of checkboxes. When I try to replicate this in order to better understand it, however, I can't succeed in hiding the original style of checkbox, which then sits next to the toggleable flag: I've been using CoffeeCup to compile/edit my code so far, and when viewing the results on it I don't see the checkbox. The code is as follows: (html side) <label class="container"> <input type="checkbox"> <img class="img-unchecked" src="<a href="https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Blades%20in%20the%20Dark/Assets/teeth/xptooth-red.png" rel="nofollow">https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Blades%20in%20the%20Dark/Assets/teeth/xptooth-red.png</a>" width="20px"> <img class="img-checked" src="<a href="https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Blades%20in%20the%20Dark/Assets/teeth/xptooth-white.png" rel="nofollow">https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Blades%20in%20the%20Dark/Assets/teeth/xptooth-white.png</a>" width="20px"> </label> (css side) /* making the images smaller */ img[src*='xptooth-red'] { size:10px; } img[src*='xptooth-white'] { size:10px; } /* testing image swapping on button click */ .container { cursor: pointer; caret-color: transparent; display: block; } .container input { display: none; } .img-checked { display: none; } /* If checked, show the checked image */ .container input:checked ~ .img-checked { display: inline; } /* If checked, hide the unchecked image */ .container input:checked ~ .img-unchecked { display: none; } Is there any way I can get this to work using roll20's peculiarities? Also, should I be trying to apply the css inline rather than on a separate, referenced document? both seem to work, but I'm not sure if one is better than the other when it comes to roll20. Thanks!