Is there anyway to add a selector to an inline style? I am attempting to create some CSS only interaction, but I cannot use either an external CSS file or define CSS styles in the document. So I must put it all into a style attribute.
I have found this:
CSS
:checked + div {display: block !important;}
HTML
<div class="span3"><label for="an1">press me</label></div>
<input id="an1" type=checkbox style="display:none;"><div style="display: none;"> hidden</div>
This results in the hidden text being shown when "press me" is clicked.
Is there anyway to put the CSS code into the inline style attribute? I am dealing with system that severely limits my allowed code.