Short
I want a list () to be hidden (visibility : hidden) if a checkbox is not pressed WITHOUT using javascrit, external file or head+style (email restrictions). How to do this ?
Long
Hello overflowers,
I want to use html tag style property
<anytag style="">
to makes a button reveal a list inside an email.
For wider support, I want the button to "hide it if unchecked" so the list (ul) will be displayed anyway if the trick used isn't supported by the receiver.
At this point, my generated page somewhat looks like this (use an htlm reader like https://codebeautify.org/htmlviewer/)
<body>
<h2>Rules applied to check EMAIL</h2>
<br>
<!--Some lines with rules for the field
such as maximum lenght.
-->
<button id = "b1" > show lines with invalid or empty datas for this field
</button> <!--Edit : has been replaced by checkbox-->
<ul id="ul1">
invalid EMAIL on line(s) :
<li style="margin-left:20px">12</li>
<li style="margin-left:20px">16</li>
<li style="margin-left:20px">51</li>
<li style="margin-left:20px">52</li>
<li style="margin-left:20px">53</li>
<li style="margin-left:20px">57</li>
<li style="margin-left:20px">62</li>
</ul>
<br>
<h2>Rules applied to check BIRTHDATE</h2>
<br>
<!--Some lines with rules for the field
such as minimum value.
-->
<button id = "b2" > show lines with invalid or empty datas for this field
</button> <!--Edit : has been replaced by checkbox-->
<ul id="ul2">
invalid BIRTHDATE on line(s) :
<li style="margin-left:20px">12</li>
<li style="margin-left:20px">35</li>
<li style="margin-left:20px">51</li>
</ul>
</body>
As told, I would like a way to hide the list if the button isn't clicked.
As Javascript is disabled everywhere and some mailbox just ignore the <style>
tag, I just want a solution that works with inline css or common html.
Thanks.