
Due to my sheet using translations, I can't afford to make a standard 'fake checkbox'. You can't put translation tags in CSS as far as I know. What I Want: I am trying to put an <input> checkbox inside a styled span, so that a 'before','hover' and 'active' effect happens on the skill name along with the 'check'. The Problem: It seems as soon as I put the <input> inside the span, it no longer communicates to the <div> container that it is supposed to 'show/hide'. When the Input is outside of the span, it works just fine but then the skill name doesn't light up because the checkbox is 'hidden above it'. <span data-i18n="brawlin-u" class="sheet-stat-roller">BRAWLING
<input type="checkbox" checked='true' name='attr_brawling_dropdown' class="sheet-brawling-dropdown"></span>
<div class='sheet-brawling-container'>Revealed Content!</div> span.sheet-stat-roller::before {
content: " ";
}
span.sheet-stat-roller {
background: none;
margin-right: 5px;
width: 150px;
text-shadow: none;
text-align: right;
font-family: "Helvetica";
font-size: 10px;
padding: 0!important;
outline-color: transparent;
border: none;
font-weight: bold;
box-shadow: none;
z-index: 1;
}
span.sheet-stat-roller:hover {
color: #5e0000;
box-shadow: none;
}
span.sheet-stat-roller:active {
color: #bc0000;
box-shadow: none;
}
input[type="checkbox"].sheet-brawling-dropdown {
opacity: 0;
width: 150px;
height: 15px;
margin-right: 10px;
left: 8px;
margin: 0px -50px 0px 0px;
position: relative;
z-index: 0;
}
input.sheet-brawling-dropdown:checked ~ div.sheet-brawling-container {
display: none;
} You might laugh, but I have been working on this for two days! So hopelessly stuck, I feel terrible coming here to ask for help all the time. Sorry guys :(