I've tried to read up on CSS tags and datatags, but it all seems pretty confusing to me and all the examples seem to be only for the entire passage/page.
How can i change an independent <Div> that's created seperately and dynamically from the CSS styling in Sugarcube 2.0?
The <Div> is created like this:
How would i go about adding and removing CSS to that <Div> to make it visible and invisible? like adding "visibility: hidden;" or "visibility: visible;" in a way were it could be dynamically chosen as a setting? something like this:
<<if $image_bar == 0>>[[Enable|Settings][$image_bar = 1]]<<elseif $image_bar == 1>>[[Disable|Settings][$image_bar = 0]]<<endif>>
then put into StoryCaption:
<<if $image_bar == 0>>
Div is set to hidden
<<elseif $image_bar == 1>>
Div is set to visible
Or is there a better way to change CSS for a Div?