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

[3.5e] Character Sheet Tabs I Don't Understand.

First off let me just say I'm using the 3.5e HTML and CSS to make my own character sheet for ME3. I pretty much have it all done but I wanted to use tabs just like the 3.5e does. Without the tabs players will be scrolling a lot to get to something at the bottom of the page rather than just clicking a Tab and going right to what they want to.  Can someone help be able to put tabs in? Examples could be fine as well or an explanation. Thanks for reading and hope for your help.
1441427821
Finderski
Plus
Sheet Author
Compendium Curator
Here's what I used for my Savage Worlds character sheet.  I stole this approach from Actoba's 5e D&D sheet. HTML: <div> <!-- Set up the Tabs --> <input type="radio" class="sheet-tab sheet-tab1" name="attr_core-tab" value="1" title="Basic Info" checked="checked"/>  <span class="sheet-tab sheet-tab1" style='line-height: 40px;'>BASIC INFO</span> <input type="radio" class="sheet-tab sheet-tab2" name="attr_core-tab" value="2" title="Edges & Hindrances" />  <span class="sheet-tab sheet-tab2" style='line-height: 20px;'>EDGES & HINDRANCES</span> <input type="radio" class="sheet-tab sheet-tab3" name="attr_core-tab" value="3" title="Skills" />  <span class="sheet-tab sheet-tab3" style='line-height: 40px;'>SKILLS</span> <input type="radio" class="sheet-tab sheet-tab4" name="attr_core-tab" value="4" title="Equipment" />  <span class="sheet-tab sheet-tab4" style='line-height: 40px;'>EQUIPMENT</span> <input type="checkbox" class="sheet-hideArcanum" name="attr_ArcanumTab" style="width: 15px; display: none;"> <input type="radio" class="sheet-tab sheet-tab5" name="attr_core-tab" value="5" title="Arcanum" />  <span class="sheet-tab sheet-tab5" style='line-height: 40px;'>ARCANUM</span> <input type="radio" class="sheet-tab sheet-tab6" name="attr_core-tab" value="6" title="Journal" />  <span class="sheet-tab sheet-tab6" style='line-height: 40px;'>JOURNAL</span> <input type="radio" class="sheet-tab sheet-tab99" name="attr_core-tab" value="99" title="All" /> <span class="sheet-tab sheet-tab99" style='line-height: 40px;'>ALL</span> <!-- End Tab setup --> <div class="sheet-section-core"><!-- Core Tab --> <!-- Stuff on the tab --> </div> <div class="sheet-section-edges"><!-- Edges Tab --> <!-- Stuff on the tab --> </div> <div class="sheet-section-skills"><!-- Skills Tab --> <!-- Stuff on the tab --> </div> <div class="sheet-section-gear"><!-- gear Tab --> <!-- Stuff on the tab --> </div> <div class="sheet-section-arcanum"><!-- arcanum Tab --> <!-- Stuff on the tab --> </div> <div class="sheet-section-journal"><!-- Journal Tab --> <!-- Stuff on the tab --> </div> </div> CSS: /*----------- Tabs Setup -------------*/ /*this hides the contents of each tab by default*/ .charsheet div[class^="sheet-section"] { display: none; } /*this shows the tab content when the appropriate input field is selected*/ .charsheet input.sheet-tab1:checked ~ div.sheet-section-core, .charsheet input.sheet-tab2:checked ~ div.sheet-section-edges, .charsheet input.sheet-tab3:checked ~ div.sheet-section-skills, .charsheet input.sheet-tab4:checked ~ div.sheet-section-gear, .charsheet input.sheet-tab5:checked ~ div.sheet-section-arcanum, .charsheet input.sheet-tab6:checked ~ div.sheet-section-journal { display: block; } .charsheet input.sheet-tab99:checked ~ div[class^="sheet-section"] { display: block; } /*this hides the radio button for each tab, makes it 100px wide and 40px tall and makes sure it's above everything else*/ .charsheet input.sheet-tab {     width: 100px;     height: 40px;     cursor: pointer; position: relative; opacity: 0; z-index: 9999; } /*this styles the span with the tab information and slides to the left, so it appears underneath the radio button*/ .charsheet span.sheet-tab { text-align: center;     display: inline-block; font-size: 13px; background: #c7c3b0; color: black; font-weight: bold; border-radius: 4px; width: 100px;     height: 40px;     cursor: pointer; position: relative; vertical-align: middle; margin-left: -101px;/*originally 91px*/ } /*this modifies the span color once the radio button is selected so you know which tab is selected*/ .charsheet input.sheet-tab1:checked + span.sheet-tab1, .charsheet input.sheet-tab2:checked + span.sheet-tab2, .charsheet input.sheet-tab3:checked + span.sheet-tab3, .charsheet input.sheet-tab4:checked + span.sheet-tab4, .charsheet input.sheet-tab5:checked + span.sheet-tab5, .charsheet input.sheet-tab6:checked + span.sheet-tab6, .charsheet input.sheet-tab7:checked + span.sheet-tab7, .charsheet input.sheet-tab8:checked + span.sheet-tab8, .charsheet input.sheet-tab99:checked + span.sheet-tab99 {          background: #2c424e;     color: #bfc4c6; border-radius: 4px; } /*----------- End Tab Setup -----------*/ I tried to show what the CSS is doing in relation to the html, but take a look and let us know what questions you have.
G V. said: I tried to show what the CSS is doing in relation to the html, but take a look and let us know what questions you have. Well 1st off thinks so much. It works for the most part but I most be doing something wrong. I got rid of the all the ArcanumTab HTML. After that I filled in all the spots that you pointed out. For some reason my skills are showing up in both the EDGES tab and the SKILLS tab. When I try to edit it in I end up making it not show any skills for any tab as well as the EQUIPMENT tab. Any idea why this is happening? I can send you the code if need me.
1441501897
Finderski
Plus
Sheet Author
Compendium Curator
We'll need to see the code (both HTML and CSS) to be able to troubleshoot it properly...
1441547997

Edited 1441548052
G V. said: We'll need to see the code (both HTML and CSS) to be able to troubleshoot it properly... I found out why it was messed up. The 3.5e CSS had the same code for skills but in the second slot. Like you had ".charsheet input.sheet-tab2:checked ~ div.sheet-section-edges," but 3.5e had ".charsheet input.sheet-tab3:checked ~ div.sheet-section-skills,". So skills would show up on both tabs because of that. I had to go back and delete some of the CSS code from 3.5e for it to work.
1441573882
Finderski
Plus
Sheet Author
Compendium Curator
Awesome. Glad you got it sorted. :)
G V. said: Awesome. Glad you got it sorted. :) Yep. Also I want to thank you for all the help you gave me. Thanks so much.