Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Custom AD&D 2e sheet monster radio broken after my edits

1423812822

Edited 1423812936
Hello, I'm doing a custom of Dylan G's AD&D 2e sheet (it is nice) to fit my Hackmaster (old edition) and while the player part is close to done, I borked up the ability to switch to the Monster Radio section (it appears blank). I know it's a CSS issue but I pretty much know nothing of CSS (but I can edit HTML pretty well) :P. I guess I'll just links to the code. The CSS has been untouched from the original and I've gotten the sheet to appear at the bottom when messing with it but that isn't what I want. HTML <a href="https://gist.github.com/anonymous/8e2b426d15d66e5d8c01#file-gistfile1-txt" rel="nofollow">https://gist.github.com/anonymous/8e2b426d15d66e5d8c01#file-gistfile1-txt</a> CSS Original Link: <a href="https://raw.githubusercontent.com/Roll20/roll20-ch" rel="nofollow">https://raw.githubusercontent.com/Roll20/roll20-ch</a>... Copy in gist: <a href="https://gist.github.com/anonymous/6e5d7e7c8338965301bb#file-gistfile1-txt" rel="nofollow">https://gist.github.com/anonymous/6e5d7e7c8338965301bb#file-gistfile1-txt</a> I'll probably do a few more edits (on the monster side), so I need to know what to avoid in the future.
1423818902
Finderski
Plus
Sheet Author
Compendium Curator
Quick question, is this a situation where it is EITHER a character OR a monster? I ask, because as you have it set up it's trying to use Tabs and so you have a single radio button, but once the radio button is checked, it can't be unchecked, which is why you are only getting one sheet. So, you could change the Radio Button to be a checkbox. Then your CSS would need to be modified as well. For example: HTML: &lt;input class="sheet-is-npc" type="checkbox" name="attr_is_npc" value="1" /&gt;&lt;span class="sheet-is-npc-tab"&gt;&lt;/span&gt; &lt;div class='sheet-player' style="width: 810px;"&gt; &lt;html stuff here for player sheet&gt; &lt;/div&gt; &lt;div class="sheet-npc" style='width:810px; background-color:#e0e0e0;'&gt; &lt;html stuff here for monster sheet&gt; &lt;/div&gt; CSS: .charsheet div.sheet-player, .charsheet div.sheet-npc { display: none; float: left; } .charsheet input.sheet-is-npc:checked ~ div.sheet-npc, .charsheet input.sheet-is-npc:not(:checked )~ div.sheet-player { display: block; overflow: auto; } The first set of stuff in CSS sets the default to hide both sheets, and the second one says to display the player sheet if the checkbox is NOT checked, and display the npc/monster sheet if the checkbox IS checked. If you want to have them both available simultaneously, (i.e. as a tabs), then you are missing a radio button to select between which tab to show. I hope that makes sense.
Thanks for your help. I found the issue, I deleted the &lt;/div&gt; at the end of the Rogue Skills section area by accident.