
I've been updating a legacy 5e sheet to add some 3rd party content. Some hidden sections aren't working as I hoped they would. Some sections hide when they should, others hide when they shouldn't, and some don't hide when they should. The idea is that the display sections for Caster Level, Pact Level & Manifester Level should only display if the character actually has a level greater than zero in the respective category. If anyone can offer any suggestions I'd be grateful. The CSS I am currently using is: .toggle [ value = "0" ] ~ .arcanum-level , .toggle [ value = "0" ] ~ .spell-level { display : none !important ; } .toggle:not ([ value = "0" ]) ~ .arcanum-level , .toggle:not ([ value = "0" ]) ~ .spell-level { display : inline-block !important ; } And the HTML is: < input type = "hidden" class = "toggle" name = "attr_caster_level" > < div class = "arcanum-level" > < div class = "level" >< span class = "label" name = "attr_caster_level" style = " font-weight: bold;" > 0 </ span ></ div > < div class = "cantrips" >< span class = "label" style = " font-size: 13px; font-weight: bold; margin-left: 10px;" data-i18n = "magic-caster-lvl:-u" > MAGIC CASTER LEVEL </ span ></ div > </ div > < input type = "hidden" class = "toggle" name = "attr_pact_level" > < div class = "arcanum-level" > < div class = "level" >< span class = "label" name = "attr_pact_level" style = " font-weight: bold;" ></ span ></ div > < div class = "cantrips" >< span class = "label" style = " font-size: 13px; font-weight: bold; margin-left: 10px;" data-i18n = "pact-caster-lvl:-u" > PACT CASTER LEVEL </ span ></ div > </ div > < input type = "hidden" class = "toggle" name = "attr_manifest_level" > < div class = "arcanum-level" > < div class = "level" >< span class = "label" name = "attr_manifest_level" style = " font-weight: bold;" > 0 </ span ></ div > < div class = "cantrips" >< span class = "label" style = " font-size: 13px; font-weight: bold; margin-left: 10px;" data-i18n = "manifester-lvl:-u" > MANIFESTATION LEVEL </ span ></ div > </ div >