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

Adding an NPC tab to my charsheet and buttons to toggle between PC and NPC has broken my formatting

Hello all, like a fool, I didn't save a copy of my functional code before making a big change to everything. I added an NPC tab (I think this is the right word; I am very much a noob at this and kind of just stumbling my way through custom sheets).&nbsp; There are two buttons at the top to toggle between PC and NPC, and each has its own section divs which are called out in two separate grid elements in the CSS. There was also some CSS applying formatting (font family, header color, etc.) to the sheet. The grid seems to mostly still be working, but the PC sheet no longer fits within the grid.&nbsp; All the PC sheet formatting I mentioned is gone (but oddly, it is intact on the NPC side).&nbsp; Additionally, adding the buttons/tabs added this white row of nothingness to the top of my PC sheet (but not the NPC sheet).&nbsp; This may also be what's throwing off the grid. I have no idea where the problems are stemming from and am sure I am massively messing up with coding, especially on the CSS side which I have even less experience than my beginner experience with HTML.&nbsp; I can post my code here although it is pretty long and poorly commented (lots of repeating segments though, so that might help parsing it quicker).&nbsp; Any help that anyone can provide would be a godsend. Thank you! HTML: &lt;main&gt; &lt;section class="header f-center"&gt; &lt;!--&lt;h1&gt;Lord of Llamas&lt;/h1&gt;--&gt; &lt;img src="<a href="https://i.imgur.com/lZhnBkC.png" rel="nofollow">https://i.imgur.com/lZhnBkC.png</a>" width="360px" height="60px"&gt; &lt;span&gt;&lt;b&gt;Roll20 Beta Testing Sheet 1.03.16&lt;/b&gt;&lt;/span&gt; &lt;/section&gt; &lt;!-- Sheet type switcher --&gt; &lt;input type="hidden" class="sheet-tabstoggle" name="attr_sheetTab" value="pc" /&gt; &lt;div&gt; &lt;button type="action" name="act_pc" &gt;PC&lt;/button&gt; &lt;button type="action" name="act_npc" &gt;NPC&lt;/button&gt; &lt;/div&gt; &lt;!-- PC SHEET--&gt; &lt;div class="sheet-pc"&gt; &lt;!-- basic character stats --&gt; &lt;section class="common"&gt; &lt;label&gt;&lt;h2&gt;Primary Characteristics&lt;/h2&gt;&lt;/label&gt; &lt;label&gt;Name: &lt;input name="attr_character_name" type="text"&gt; Level: &lt;input type="number" min="1" max="15" name="attr_level" value="1"&gt;&lt;/label&gt; &lt;label&gt;Lineage: &lt;select name="attr_lineage"&gt; &lt;option value="0" selected="selected"&gt;Select one:&lt;/option&gt; &lt;option value="1"&gt;Aurok&lt;/option&gt; &lt;option value="2"&gt;Devilspawn&lt;/option&gt; &lt;option value="3"&gt;Grubling&lt;/option&gt; &lt;option value="4"&gt;Human&lt;/option&gt; &lt;option value="5"&gt;Llama&lt;/option&gt; &lt;option value="6"&gt;Monkey&lt;/option&gt; &lt;option value="7"&gt;Transfigured&lt;/option&gt; &lt;/select&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; XP: &lt;input type="number" min="0" max="10" name="attr_xp" value="0"&gt; &lt;/label&gt; &lt;label&gt;Discipline: &lt;select name="attr_discipline"&gt; &lt;option value="0" selected="selected"&gt;Select one:&lt;/option&gt; &lt;option value="1"&gt;Accuser&lt;/option&gt; &lt;option value="2"&gt;Beast-Tamer&lt;/option&gt; &lt;option value="3"&gt;Chieftain&lt;/option&gt; &lt;option value="4"&gt;Hellfriend&lt;/option&gt; &lt;option value="5"&gt;Knave&lt;/option&gt; &lt;option value="6"&gt;Prophet&lt;/option&gt; &lt;option value="7"&gt;Ravager&lt;/option&gt; &lt;option value="8"&gt;Warlock&lt;/option&gt; &lt;/select&gt; &lt;/label&gt;&lt;br /&gt; &lt;b&gt;Health: &lt;input type="number" name="attr_health" value="5" size="3"&gt; / &lt;input type="number" name="attr_health_max" value="5" size="3"&gt; &amp;nbsp; Willpower: &lt;input type="number" name="attr_willpower" value="2"&gt; / &lt;input type="number" name="attr_willpower_max" value="2"&gt; &amp;nbsp; Speed: &lt;input type="number" name="attr_speed" value="5"&gt; &lt;br /&gt; Defense: &lt;input type="number" name="attr_defense" readonly="true" value=""&gt;&lt;button type="roll" name="roll_defense" value="&amp;{template:rolls} {{title=Defense}} {{subtitle=@{character_name} }} {{roll= [[[[@{defense}]]d6&gt;?{Target Number?|4}]]}}"&gt; &lt;/button&gt; &amp;nbsp; Initiative: &lt;input type="number" name="attr_initiative" value="2"&gt;&lt;button type="roll" name="roll_initiative" value="&amp;{template:rolls} {{title=Initiative}} {{subtitle=@{character_name} }} {{roll= [[[[@{initiative}]]d6&amp;{tracker}]]}}"&gt; &lt;/button&gt; &lt;br /&gt;&lt;br /&gt; &lt;div class="desc"&gt;Physical Description: &lt;textarea name="attr_physdesc" placeholder="Write a brief character description here"&gt;&lt;/textarea&gt;&lt;/div&gt; &lt;div class="desc"&gt;Injuries: &lt;textarea name="attr_injuries" placeholder="Record any injuries you've suffered here"&gt;&lt;/textarea&gt;&lt;/div&gt;&lt;/b&gt; &lt;/section&gt; &lt;!--Attributes and Skills list --&gt; &lt;section class="skill f-col nowrap"&gt; &lt;h2&gt;Attributes&lt;/h2&gt; &lt;!-- Mightiness --&gt; &lt;div class="f-row nowrap"&gt; &lt;h3&gt;Mightiness&lt;/h3&gt; &lt;input type="number" name="attr_mightiness" value="0" min="0" max="6"&gt; &lt;button type="roll" name="roll_might" value="&amp;{template:rolls} {{title=Mightiness}} {{subtitle=@{character_name} }} {{roll= [[[[@{mightiness}]]d6&gt;?{Target Number?|4}]]}}"&gt; &lt;/button&gt; &lt;div class="f-row nowrap"&gt; &lt;b&gt;Brawn&lt;/b&gt; &lt;input type="number" name="attr_brawn" value="0" min="0" max="6"&gt; &lt;button type="roll" name="roll_brawn" value="&amp;{template:rolls} {{title=Brawn}} {{subtitle=@{character_name} }} {{roll= [[[[@{mightiness}+@{brawn}]]d6&gt;?{Target Number?|4}]]}}"&gt; &lt;/button&gt; &lt;/div&gt; &lt;div class="f-row nowrap"&gt; &lt;b&gt;Grapple&lt;/b&gt; &lt;input type="number" name="attr_grapple" value="0" min="0" max="6"&gt; &lt;button type="roll" name="roll_grapple" value="&amp;{template:rolls} {{title=Grapple}} {{subtitle=@{character_name} }} {{roll= [[[[@{mightiness}+@{grapple}]]d6&gt;?{Target Number?|4}]]}}"&gt; &lt;/button&gt; &lt;/div&gt; &lt;div class="f-row nowrap"&gt; &lt;b&gt;Intimidate&lt;/b&gt; &lt;input type="number" name="attr_intimidate" value="0" min="0" max="6"&gt; &lt;button type="roll" name="roll_intimidate" value="&amp;{template:rolls} {{title=Intimidate}} {{subtitle=@{character_name} }} {{roll= [[[[@{mightiness}+@{intimidate}]]d6&gt;?{Target Number?|4}]]}}"&gt; &lt;/button&gt; &lt;/div&gt; &lt;div class="f-row nowrap"&gt; &lt;b&gt;Traverse&lt;/b&gt; &lt;input type="number" name="attr_traverse" value="0" min="0" max="6"&gt; &lt;button type="roll" name="roll_traverse" value="&amp;{template:rolls} {{title=Traverse}} {{subtitle=@{character_name} }} {{roll= [[[[@{mightiness}+@{traverse}]]d6&gt;?{Target Number?|4}]]}}"&gt; &lt;/button&gt; &lt;/div&gt;&lt;br /&gt; &lt;!-- Craftiness --&gt; &lt;div class="f-row nowrap"&gt; &lt;h3&gt;Craftiness&lt;/h3&gt; &lt;input type="number" name="attr_craftiness" value="0" min="0" max="6"&gt; &lt;button type="roll" name="roll_craft" value="&amp;{template:rolls} {{title=Craftiness}} {{subtitle=@{character_name} }} {{roll= [[[[@{craftiness}]]d6&gt;?{Target Number?|4}]]}}"&gt; &lt;/button&gt; &lt;/div&gt; &lt;div class="f-row nowrap"&gt; &lt;b&gt;Deceive&lt;/b&gt; &lt;input type="number" name="attr_deceive" value="0" min="0" max="6"&gt; &lt;button type="roll" name="roll_deceive" value="&amp;{template:rolls} {{title=Deceive}} {{subtitle=@{character_name} }} {{roll= [[[[@{craftiness}+@{deceive}]]d6&gt;?{Target Number?|4}]]}}"&gt; &lt;/button&gt; &lt;/div&gt; &lt;div class="f-row nowrap"&gt; &lt;b&gt;Hide&lt;/b&gt; &lt;input type="number" name="attr_hide" value="0" min="0" max="6"&gt; &lt;button type="roll" name="roll_hide" value="&amp;{template:rolls} {{title=Hide}} {{subtitle=@{character_name} }} {{roll= [[[[@{craftiness}+@{hide}]]d6&gt;?{Target Number?|4}]]}}"&gt; &lt;/button&gt; &lt;/div&gt; &lt;div class="f-row nowrap"&gt; &lt;b&gt;Repair&lt;/b&gt; &lt;input type="number" name="attr_repair" value="0" min="0" max="6"&gt; &lt;button type="roll" name="roll_repair" value="&amp;{template:rolls} {{title=Repair}} {{subtitle=@{character_name} }} {{roll= [[[[@{craftiness}+@{repair}]]d6&gt;?{Target Number?|4}]]}}"&gt; &lt;/button&gt; &lt;/div&gt; &lt;div class="f-row nowrap"&gt; &lt;b&gt;Search&lt;/b&gt; &lt;input type="number" name="attr_search" value="0" min="0" max="6"&gt; &lt;button type="roll" name="roll_search" value="&amp;{template:rolls} {{title=Search}} {{subtitle=@{character_name} }} {{roll= [[[[@{craftiness}+@{search}]]d6&gt;?{Target Number?|4}]]}}"&gt; &lt;/button&gt; &lt;/div&gt;&lt;br /&gt; &lt;!-- Worldliness --&gt; &lt;div class="f-row nowrap"&gt; &lt;h3&gt;Worldliness&lt;/h3&gt; &lt;input type="number" name="attr_worldliness" value="0" min="0" max="6"&gt; &lt;button type="roll" name="roll_world" value="&amp;{template:rolls} {{title=Worldliness}} {{subtitle=@{character_name} }} {{roll= [[[[@{worldliness}]]d6&gt;?{Target Number?|4}]]}}"&gt; &lt;/button&gt; &lt;/div&gt; &lt;div class="f-row nowrap"&gt; &lt;b&gt;Cook&lt;/b&gt; &lt;input type="number" name="attr_cook" value="0" min="0" max="6"&gt; &lt;button type="roll" name="roll_cook" value="&amp;{template:rolls} {{title=Cook}} {{subtitle=@{character_name} }} {{roll= [[[[@{worldliness}+@{cook}]]d6&gt;?{Target Number?|4}]]}}"&gt; &lt;/button&gt; &lt;/div&gt; &lt;div class="f-row nowrap"&gt; &lt;b&gt;Identify&lt;/b&gt; &lt;input type="number" name="attr_identify" value="0" min="0" max="6"&gt; &lt;button type="roll" name="roll_identify" value="&amp;{template:rolls} {{title=Identify}} {{subtitle=@{character_name} }} {{roll= [[[[@{worldliness}+@{identify}]]d6&gt;?{Target Number?|4}]]}}"&gt; &lt;/button&gt; &lt;/div&gt; &lt;div class="f-row nowrap"&gt; &lt;b&gt;Persuade&lt;/b&gt; &lt;input type="number" name="attr_persuade" value="0" min="0" max="6"&gt; &lt;button type="roll" name="roll_persuade" value="&amp;{template:rolls} {{title=persuade}} {{subtitle=@{character_name} }} {{roll= [[[[@{worldliness}+@{persuade}]]d6&gt;?{Target Number?|4}]]}}"&gt; &lt;/button&gt; &lt;/div&gt; &lt;div class="f-row nowrap"&gt; &lt;b&gt;Socialize&lt;/b&gt; &lt;input type="number" name="attr_socialize" value="0" min="0" max="6"&gt; &lt;button type="roll" name="roll_socialize" value="&amp;{template:rolls} {{title=socialize}} {{subtitle=@{character_name} }} {{roll= [[[[@{worldliness}+@{socialize}]]d6&gt;?{Target Number?|4}]]}}"&gt; &lt;/button&gt; &lt;/div&gt;&lt;br /&gt; &lt;!--Holiness--&gt; &lt;div class="f-row nowrap"&gt; &lt;h3&gt;Holiness&lt;/h3&gt; &lt;input type="number" name="attr_holiness" value="0" min="0" max="6"&gt; &lt;button type="roll" name="roll_holy" value="&amp;{template:rolls} {{title=Holiness}} {{subtitle=@{character_name} }} {{roll= [[[[@{holiness}]]d6&gt;?{Target Number?|4}]]}}"&gt; &lt;/button&gt; &lt;/div&gt; &lt;div class="f-row nowrap"&gt; &lt;b&gt;Allure&lt;/b&gt; &lt;input type="number" name="attr_allure" value="0" min="0" max="6"&gt; &lt;button type="roll" name="roll_allure" value="&amp;{template:rolls} {{title=Allure}} {{subtitle=@{character_name} }} {{roll= [[[[@{holiness}+@{allure}]]d6&gt;?{Target Number?|4}]]}}"&gt; &lt;/button&gt; &lt;/div&gt; &lt;div class="f-row nowrap"&gt; &lt;b&gt;Invoke&lt;/b&gt; &lt;input type="number" name="attr_invoke" value="0" min="0" max="6"&gt; &lt;button type="roll" name="roll_invoke" value="&amp;{template:rolls} {{title=Invoke}} {{subtitle=@{character_name} }} {{roll= [[[[@{holiness}+@{invoke}]]d6&gt;?{Target Number?|4}]]}}"&gt; &lt;/button&gt; &lt;/div&gt; &lt;div class="f-row nowrap"&gt; &lt;b&gt;Praise&lt;/b&gt; &lt;input type="number" name="attr_praise" value="0" min="0" max="6"&gt; &lt;button type="roll" name="roll_praise" value="&amp;{template:rolls} {{title=praise}} {{subtitle=@{character_name} }} {{roll= [[[[@{worldliness}+@{praise}]]d6&gt;?{Target Number?|4}]]}}"&gt; &lt;/button&gt; &lt;/div&gt; &lt;div class="f-row nowrap"&gt; &lt;b&gt;Wrangle&lt;/b&gt; &lt;input type="number" name="attr_wrangle" value="0" min="0" max="6"&gt; &lt;button type="roll" name="roll_wrangle" value="&amp;{template:rolls} {{title=wrangle}} {{subtitle=@{character_name} }} {{roll= [[[[@{worldliness}+@{wrangle}]]d6&gt;?{Target Number?|4}]]}}"&gt; &lt;/button&gt; &lt;/div&gt; &lt;/section&gt; &lt;!-- Traits and Feats sections --&gt; &lt;section class="feat f-col"&gt; &lt;h2&gt;Feats&lt;/h2&gt; &lt;fieldset class="repeating_feat"&gt; &lt;input name="attr_feat" type="text" &gt; &lt;/fieldset&gt; &lt;/section&gt; &lt;section class="trait f-col"&gt; &lt;h2&gt;Traits&lt;/h2&gt; &lt;fieldset class="repeating_trait"&gt; &lt;input name="attr_trait" type="text" &gt; &lt;/fieldset&gt; &lt;/section&gt; &lt;!-- Weapons sections--&gt; &lt;section class="weapon1"&gt; &lt;h2&gt;Weapon One&lt;/h2&gt; Name: &lt;input type="text" name="attr_weapon1name"&gt;&lt;br /&gt; Weapon Type: &lt;select name="attr_weapon1type"&gt; &lt;option value="0"&gt;n/a&lt;/option&gt; &lt;option value="2"&gt;Melee, Simple&lt;/option&gt; &lt;option value="4"&gt;Melee, Warrior&lt;/option&gt; &lt;option value="6"&gt;Melee, Champion&lt;/option&gt; &lt;option value="1"&gt;Ranged, Simple&lt;/option&gt; &lt;option value="3"&gt;Ranged, Warrior&lt;/option&gt; &lt;option value="5"&gt;Ranged, Champion&lt;/option&gt; &lt;/select&gt;&lt;br /&gt; Material: &lt;select name="attr_weapon1material"&gt; &lt;option value="" selected="selected"&gt;Select one:&lt;/option&gt; &lt;option value="0"&gt;n/a&lt;/option&gt; &lt;option value="-1"&gt;Clay&lt;/option&gt; &lt;option value="0"&gt;Oxbone&lt;/option&gt; &lt;option value="1"&gt;Wood&lt;/option&gt; &lt;option value="2"&gt;Stone&lt;/option&gt; &lt;option value="2"&gt;Bronze&lt;/option&gt; &lt;option value="3"&gt;Starmetal&lt;/option&gt; &lt;option value="3"&gt;Demonglass&lt;/option&gt; &lt;option value="4"&gt;Cloudforged&lt;/option&gt; &lt;/select&gt;&lt;br /&gt; Durability: &lt;input type="number" name="attr_weapon1durability" min="2" max="6"&gt;&lt;button type="roll" name="durability1" value="&amp;{template:rolls} {{title=Durability}} {{subtitle=@{weapon1name} }} {{roll= [[1d6&gt;[[@{weapon1durability}]]]]}}"&gt;&lt;/button&gt; Wear: &lt;input type="number" value ="0" min="0" max="3" name="attr_wear1"&gt;&lt;br/&gt;&lt;br /&gt; Bonus Attack Dice: &lt;input type="number" name="attr_weapon1attack" value="0"&gt;&lt;br /&gt; Properties: &lt;input type="text" name="attr_w1prop"&gt;&lt;br /&gt;&lt;br /&gt; &lt;b&gt;ATTACK&lt;/b&gt; &lt;button type="roll" name="attack1" value="&amp;{template:rolls} {{title=Attack}} {{subtitle=@{weapon1name} }} {{roll= [[[[@{weapon1type}-@{wear1}+@{mightiness}+@{weapon1material}+@{weapon1attack}]]d6&gt;?{Target Number?|4}]]}}"&gt;&lt;/button&gt; &lt;/section&gt; &lt;section class="weapon2"&gt; &lt;h2&gt;Weapon Two&lt;/h2&gt; Name: &lt;input type="text" name="attr_weapon2name"&gt;&lt;br /&gt; Weapon Type: &lt;select name="attr_weapon2type"&gt; &lt;option value="0"&gt;n/a&lt;/option&gt; &lt;option value="2"&gt;Melee, Simple&lt;/option&gt; &lt;option value="4"&gt;Melee, Warrior&lt;/option&gt; &lt;option value="6"&gt;Melee, Champion&lt;/option&gt; &lt;option value="1"&gt;Ranged, Simple&lt;/option&gt; &lt;option value="3"&gt;Ranged, Warrior&lt;/option&gt; &lt;option value="5"&gt;Ranged, Champion&lt;/option&gt; &lt;/select&gt;&lt;br /&gt; Material: &lt;select name="attr_weapon2material"&gt; &lt;option value="" selected="selected"&gt;Select one:&lt;/option&gt; &lt;option value="0"&gt;n/a&lt;/option&gt; &lt;option value="-1"&gt;Clay&lt;/option&gt; &lt;option value="0"&gt;Oxbone&lt;/option&gt; &lt;option value="1"&gt;Wood&lt;/option&gt; &lt;option value="2"&gt;Stone&lt;/option&gt; &lt;option value="2"&gt;Bronze&lt;/option&gt; &lt;option value="3"&gt;Starmetal&lt;/option&gt; &lt;option value="3"&gt;Demonglass&lt;/option&gt; &lt;option value="4"&gt;Cloudforged&lt;/option&gt; &lt;/select&gt;&lt;br /&gt; Durability: &lt;input type="number" name="attr_weapon2durability" min="2" max="6"&gt;&lt;button type="roll" name="durability1" value="&amp;{template:rolls} {{title=Durability}} {{subtitle=@{weapon2name} }} {{roll= [[1d6&gt;[[@{weapon2durability}]]]]}}"&gt;&lt;/button&gt; Wear: &lt;input type="number" value ="0" min="0" max="3" name="attr_wear2"&gt;&lt;br/&gt;&lt;br /&gt; Bonus Attack Dice: &lt;input type="number" name="attr_weapon2attack" value="0"&gt;&lt;br /&gt; Properties: &lt;input type="text" name="attr_w2prop"&gt;&lt;br /&gt;&lt;br /&gt; &lt;b&gt;ATTACK&lt;/b&gt; &lt;button type="roll" name="attack2" value="&amp;{template:rolls} {{title=Attack}} {{subtitle=@{weapon2name} }} {{roll= [[[[@{weapon2type}-@{wear2}+@{mightiness}+@{weapon2material}+@{weapon2attack}]]d6&gt;?{Target Number?|4}]]}}"&gt;&lt;/button&gt; &lt;/section&gt; &lt;!--Inventory --&gt; &lt;section class="inv"&gt; &lt;h2&gt;Inventory&lt;/h2&gt; &lt;label&gt;Food&lt;/label&gt; &lt;textarea name="attr_food"&gt;&lt;/textarea&gt; &lt;label&gt;Garb&lt;/label&gt; &lt;textarea name="attr_garb"&gt;&lt;/textarea&gt; &lt;label&gt;Sundries&lt;/label&gt; &lt;textarea name="attr_sundries"&gt;&lt;/textarea&gt; &lt;/section&gt; &lt;!-- Armor and Defenses --&gt; &lt;section class="misc"&gt; &lt;h2&gt;Defenses&lt;/h2&gt; &lt;b&gt;Equipped Garb 1:&lt;/b&gt; &lt;input type="text" name="attr_garb1name"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; Defense: &lt;input type="number" min="0" name="attr_garb1bonus"&gt;&lt;br /&gt; Properties: &lt;input type="text" name="attr_garb1prop"&gt;&lt;br /&gt; &lt;b&gt;Equipped Garb 2:&lt;/b&gt; &lt;input type="text" name="attr_garb2name"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; Defense: &lt;input type="number" min="0" name="attr_garb2bonus"&gt;&lt;br /&gt; Properties: &lt;input type="text" name="attr_garb2prop"&gt;&lt;br /&gt; &lt;b&gt;Equipped Shield:&lt;/b&gt; &lt;input type="text" name="attr_shieldname"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; Defense: &lt;input type="number" min="0" name="attr_shieldbonus"&gt; &lt;br /&gt;Durability: &lt;input type="number" min="2" max="6" name="attr_shielddurability"&gt; &lt;button type="roll" name="attr_shield_durability" value="&amp;{template:rolls} {{title=Durability}} {{subtitle=@{shieldname} }} {{roll= [[1d6&gt;[[@{shielddurability}+@{shieldmod}]]]]}}"&gt;&lt;/button&gt; Wear: &lt;input type="number" min="0" max="3" name="attr_wear"&gt; &lt;br /&gt; Properties: &lt;input type="text" name="attr_shieldprop"&gt; &lt;br /&gt; &lt;b&gt;Other Defense Modifiers:&lt;/b&gt; &lt;input type="number" name="attr_otherdefmod"&gt;&lt;/b&gt; &lt;br /&gt; &lt;h2&gt;Backstory&lt;/h2&gt; &lt;!--there are probably a million better ways to align these elements but oh well --&gt; &lt;div class="backs" style="text-align:justify;"&gt;&lt;b&gt;Kin: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Vocation: &lt;br /&gt;&lt;textarea name="attr_kin"&gt;&lt;/textarea&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;textarea name="attr_vocation"&gt;&lt;/textarea&gt; &lt;br/&gt; Foes: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Religion: &lt;br /&gt;&lt;textarea name="attr_foes"&gt;&lt;/textarea&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;textarea name="attr_religion"&gt;&lt;/textarea&gt;&lt;br /&gt; Flaws: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Aspiration: &lt;br /&gt;&lt;textarea name="attr_flaws"&gt;&lt;/textarea&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;textarea name="attr_aspiration"&gt;&lt;/textarea&gt;&lt;br /&gt; &lt;/div&gt; &lt;/section&gt; &lt;!-- Companions --&gt; &lt;section class="companions"&gt; &lt;h2&gt;Companions&lt;/h2&gt; &lt;label&gt;Attendants:&lt;/label&gt; &lt;input type="number" name="attr_attendants" value="0" min="0"&gt; &lt;label&gt;Craftspersons:&lt;/label&gt; &lt;input type="number" name="attr_craftspersons" value="0" min="0"&gt; &lt;label&gt;Shepherds:&lt;/label&gt; &lt;input type="number" name="attr_shepherds" value="0" min="0"&gt; &lt;label&gt;Other:&lt;/label&gt; &lt;input type="number" name="attr_othercompanions" value="0" min="0"&gt; &lt;br /&gt;&lt;br /&gt; &lt;label&gt;&lt;b&gt;Total Companion Upkeep:&lt;/b&gt;&lt;/label&gt; &lt;input type="number" name="attr_upkeep" value="(2*@{attendants})+2*(@{craftspersons})+2*(@{shepherds})+2*(@{othercompanions})" disabled="true"&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;h2&gt;Livestock&lt;/h2&gt; &lt;label&gt;Sheep:&lt;/label&gt; &lt;input type="number" name="attr_sheep" value="0" min="0"&gt; &lt;/section&gt; &lt;/div&gt; &lt;!-- NPC SHEET --&gt; &lt;div class="sheet-npc"&gt; &lt;!-- basic NPC stats --&gt; &lt;section class="npccommon"&gt; &lt;label&gt;&lt;h2&gt;NPC Characteristics&lt;/h2&gt;&lt;/label&gt; &lt;b&gt;Name: &lt;input name="attr_npccharacter_name" type="text"&gt;&lt;br /&gt; Level: &lt;input type="number" min="1" max="15" name="attr_npclevel" value="1"&gt;&lt;br /&gt; Order: &lt;select name="attr_npcorder"&gt; &lt;option value="" selected="selected"&gt;Select one:&lt;/option&gt; &lt;option value="B"&gt;Beast&lt;/option&gt; &lt;option value="C"&gt;Celestial&lt;/option&gt; &lt;option value="D"&gt;Demon&lt;/option&gt; &lt;option value="M"&gt;Mortal&lt;/option&gt; &lt;option value="T"&gt;Thoughtless&lt;/option&gt; &lt;/select&gt;&lt;br /&gt; Classification: &lt;select name="attr_npcclass"&gt; &lt;option value="" selected="selected"&gt;Select one:&lt;/option&gt; &lt;option value="brute"&gt;Brute&lt;/option&gt; &lt;option value="controller"&gt;Controller&lt;/option&gt; &lt;option value="guardian"&gt;Guardian&lt;/option&gt; &lt;option value="leader"&gt;Leader&lt;/option&gt; &lt;option value="mook"&gt;Mook&lt;/option&gt; &lt;option value="opportunist"&gt;Opportunist&lt;/option&gt; &lt;option value="sniper"&gt;Sniper&lt;/option&gt; &lt;/select&gt;&lt;br /&gt; Health: &lt;input type="number" name="attr_npchealth" value=""&gt; / &lt;input type="number" name="attr_npchealth_max" value=""&gt;&lt;br /&gt; Willpower: &lt;input type="number" name="attr_npcwillpower" value=""&gt; / &lt;input type="number" name="attr_npcwillpower_max" value=""&gt;&lt;br /&gt; Speed: &lt;input type="number" name="attr_npcspeed" value=""&gt;&lt;br /&gt; Defense: &lt;input type="number" name="attr_npcdefense" value=""&gt;&lt;button type="roll" name="roll_npcdefense" value="&amp;{template:rolls} {{title=Defense}} {{subtitle=@{npccharacter_name} }} {{roll= [[[[@{npcdefense}]]d6&gt;?{Target Number?|4}]]}}"&gt; &lt;/button&gt;&lt;br /&gt; Initiative: &lt;input type="number" name="attr_npcinitiative" value=""&gt;&lt;button type="roll" name="roll_npcinitiative" value="&amp;{template:rolls} {{title=Initiative}} {{subtitle=@{npccharacter_name} }} {{roll= [[[[@{npcinitiative}]]d6&amp;{tracker}]]}}"&gt; &lt;/button&gt;&lt;br /&gt; &lt;br /&gt; LOOT: &lt;input type="text" name="attr_npcloot"&gt;&lt;/b&gt; &lt;/section&gt; &lt;!--NPC Attributes and Skills list --&gt; &lt;section class="npcatts f-col nowrap"&gt; &lt;div class="f-row nowrap"&gt; &lt;h2&gt;NPC Attributes&lt;/h2&gt;&lt;br /&gt;&lt;br /&gt; &lt;h4&gt;Mightiness: &lt;/h4&gt; &lt;input type="number" name="attr_npcmightiness" value="" min="0"&gt; &lt;button type="roll" name="roll_npcmightiness" value="&amp;{template:rolls} {{title=Mightiness}} {{subtitle=@{npccharacter_name} }} {{roll= [[[[@{npcmightiness}]]d6&gt;?{Target Number?|4}]]}}"&gt; &lt;/button&gt; &lt;/div&gt;&lt;br /&gt; &lt;div class="f-row nowrap"&gt; &lt;h4&gt;Craftiness: &lt;/h4&gt; &lt;input type="number" name="attr_npccraftiness" value="" min="0"&gt; &lt;button type="roll" name="roll_npccraftiness" value="&amp;{template:rolls} {{title=Craftiness}} {{subtitle=@{npccharacter_name} }} {{roll= [[[[@{npccraftiness}]]d6&gt;?{Target Number?|4}]]}}"&gt; &lt;/button&gt; &lt;/div&gt;&lt;br /&gt; &lt;div class="f-row nowrap"&gt; &lt;h4&gt;Worldliness: &lt;/h4&gt; &lt;input type="number" name="attr_npcworldliness" value="0" min="0" max="6"&gt; &lt;button type="roll" name="roll_npcworldliness" value="&amp;{template:rolls} {{title=Worldliness}} {{subtitle=@{npccharacter_name} }} {{roll= [[[[@{npcworldliness}]]d6&gt;?{Target Number?|4}]]}}"&gt; &lt;/button&gt; &lt;/div&gt;&lt;br /&gt; &lt;div class="f-row nowrap"&gt; &lt;h4&gt;Holiness: &lt;/h4&gt; &lt;input type="number" name="attr_npcholiness" value="0" min="0" max="6"&gt; &lt;button type="roll" name="roll_npcholiness" value="&amp;{template:rolls} {{title=Holiness}} {{subtitle=@{npccharacter_name} }} {{roll= [[[[@{npcholiness}]]d6&gt;?{Target Number?|4}]]}}"&gt; &lt;/button&gt; &lt;/div&gt; &lt;/section&gt; &lt;section class="npcskills f-col nowrap"&gt; &lt;h2&gt;Skills&lt;/h2&gt;&lt;b&gt; Skill: &lt;input type="text" name="npcskill1"&gt; &lt;input type="number" name="npcskill1v" value="" min="0"&gt; &lt;button type="roll" name="roll_npcskill1" value="&amp;{template:rolls} {{title=@{npcskill1} }} {{roll= [[[[@{npcskill1v}]]d6&gt;?{Target Number?|4}]]}}"&gt;&lt;/button&gt;&lt;br /&gt; Skill: &lt;input type="text" name="npcskill2"&gt; &lt;input type="number" name="npcskill2v" value="" min="0"&gt; &lt;button type="roll" name="roll_npcskill2" value="&amp;{template:rolls} {{title=@{npcskill2} }} {{roll= [[[[@{npcskill2v}]]d6&gt;?{Target Number?|4}]]}}"&gt;&lt;/button&gt;&lt;br /&gt; Skill: &lt;input type="text" name="npcskill3"&gt; &lt;input type="number" name="npcskill3v" value="" min="0"&gt; &lt;button type="roll" name="roll_npcskill3" value="&amp;{template:rolls} {{title=@{npcskill3} }} {{roll= [[[[@{npcskill3v}]]d6&gt;?{Target Number?|4}]]}}"&gt;&lt;/button&gt;&lt;br /&gt; Skill: &lt;input type="text" name="npcskill4"&gt; &lt;input type="number" name="npcskill4v" value="" min="0"&gt; &lt;button type="roll" name="roll_npcskill4" value="&amp;{template:rolls} {{title=@{npcskill4} }} {{roll= [[[[@{npcskill4v}]]d6&gt;?{Target Number?|4}]]}}"&gt;&lt;/button&gt;&lt;br /&gt; Skill: &lt;input type="text" name="npcskill5"&gt; &lt;input type="number" name="npcskill5v" value="" min="0"&gt; &lt;button type="roll" name="roll_npcskill5" value="&amp;{template:rolls} {{title=@{npcskill5} }} {{roll= [[[[@{npcskill5v}]]d6&gt;?{Target Number?|4}]]}}"&gt;&lt;/button&gt;&lt;br /&gt; Skill: &lt;input type="text" name="npcskill6"&gt; &lt;input type="number" name="npcskill6v" value="" min="0"&gt; &lt;button type="roll" name="roll_npcskill6" value="&amp;{template:rolls} {{title=@{npcskill6} }} {{roll= [[[[@{npcskill6v}]]d6&gt;?{Target Number?|4}]]}}"&gt;&lt;/button&gt;&lt;br /&gt; Skill: &lt;input type="text" name="npcskill7"&gt; &lt;input type="number" name="npcskill7v" value="" min="0"&gt; &lt;button type="roll" name="roll_npcskill7" value="&amp;{template:rolls} {{title=@{npcskill7} }} {{roll= [[[[@{npcskill7v}]]d6&gt;?{Target Number?|4}]]}}"&gt;&lt;/button&gt;&lt;br /&gt; Skill: &lt;input type="text" name="npcskill8"&gt; &lt;input type="number" name="npcskill8v" value="" min="0"&gt; &lt;button type="roll" name="roll_npcskill8" value="&amp;{template:rolls} {{title=@{npcskill8} }} {{roll= [[[[@{npcskill8v}]]d6&gt;?{Target Number?|4}]]}}"&gt;&lt;/button&gt;&lt;br /&gt; Skill: &lt;input type="text" name="npcskill9"&gt; &lt;input type="number" name="npcskill9v" value="" min="0"&gt; &lt;button type="roll" name="roll_npcskill9" value="&amp;{template:rolls} {{title=@{npcskill9} }} {{roll= [[[[@{npcskill9v}]]d6&gt;?{Target Number?|4}]]}}"&gt;&lt;/button&gt;&lt;br /&gt; Skill: &lt;input type="text" name="npcskill10"&gt; &lt;input type="number" name="npcskill10v" value="" min="0"&gt; &lt;button type="roll" name="roll_npcskill10" value="&amp;{template:rolls} {{title=@{npcskill10} }} {{roll= [[[[@{npcskill10v}]]d6&gt;?{Target Number?|4}]]}}"&gt;&lt;/button&gt;&lt;/b&gt; &lt;/section&gt; &lt;!-- NPC Traits sections --&gt; &lt;section class="npctrait f-col"&gt; &lt;h2&gt;Traits&lt;/h2&gt; &lt;fieldset class="repeating_trait"&gt; &lt;input name="attr_npctraits" type="text" &gt; &lt;/fieldset&gt; &lt;/section&gt; &lt;!-- NPC Feats sections --&gt; &lt;section class="npcfeat f-col"&gt; &lt;h2&gt;Feats&lt;/h2&gt; &lt;fieldset class="repeating_trait"&gt; &lt;input name="attr_npcfeats" type="text" &gt; &lt;/fieldset&gt; &lt;/section&gt; &lt;!-- NPC Attacks --&gt; &lt;!-- Attack One --&gt; &lt;section class="npcattacks"&gt; &lt;h2&gt;NPC Attacks&lt;/h2&gt; &lt;h4&gt;Attack One&lt;/h4&gt; Name: &lt;input type="text" name="attr_npcattack1name"&gt;&lt;br /&gt; Damage: &lt;input type="text" name="attr_npcattack1damage"&gt;&lt;br /&gt; Damage Type &lt;select name="attr_npcattack1type"&gt; &lt;option value="" selected="selected"&gt;Select one:&lt;/option&gt; &lt;option value="b"&gt;Bruising&lt;/option&gt; &lt;option value="c"&gt;Cutting&lt;/option&gt; &lt;option value="f"&gt;Freezing&lt;/option&gt; &lt;option value="p"&gt;Piercing&lt;/option&gt; &lt;option value="s"&gt;Scorching&lt;/option&gt; &lt;option value="u"&gt;Unblockable&lt;/option&gt; &lt;option value="z"&gt;Zapping&lt;/option&gt; &lt;/select&gt;&lt;br /&gt; Properties: &lt;input type="text" name="attr_npcattack1prop"&gt;&lt;br /&gt; Attack &lt;button type="roll" name="npcattack1" value="&amp;{template:rolls} {{title=@{npccharacter_name}}} {{subtitle=@{npcattack1name} }} {{roll= [[[[@{npcattack1damage}]]d6&gt;?{Target Number?|4}]]}}"&gt;&lt;/button&gt; &lt;br /&gt;&lt;br /&gt; &lt;!-- Attack Two --&gt; &lt;h4&gt;Attack Two&lt;/h4&gt; Name: &lt;input type="text" name="attr_npcattack2name"&gt;&lt;br /&gt; Damage: &lt;input type="text" name="attr_npcattack2damage"&gt;&lt;br /&gt; Damage Type &lt;select name="attr_npcattack2type"&gt; &lt;option value="" selected="selected"&gt;Select one:&lt;/option&gt; &lt;option value="b"&gt;Bruising&lt;/option&gt; &lt;option value="c"&gt;Cutting&lt;/option&gt; &lt;option value="f"&gt;Freezing&lt;/option&gt; &lt;option value="p"&gt;Piercing&lt;/option&gt; &lt;option value="s"&gt;Scorching&lt;/option&gt; &lt;option value="u"&gt;Unblockable&lt;/option&gt; &lt;option value="z"&gt;Zapping&lt;/option&gt; &lt;/select&gt;&lt;br /&gt; Properties: &lt;input type="text" name="attr_npcattack2prop"&gt;&lt;br /&gt; Attack &lt;button type="roll" name="npcattack2" value="&amp;{template:rolls} {{title=@{npccharacter_name}}} {{subtitle=@{npcattack2name} }} {{roll= [[[[@{npcattack2damage}]]d6&gt;?{Target Number?|4}]]}}"&gt;&lt;/button&gt; &lt;br /&gt;&lt;br /&gt; &lt;!-- Attack Three --&gt; &lt;h4&gt;Attack Three&lt;/h4&gt; Name: &lt;input type="text" name="attr_npcattack3name"&gt;&lt;br /&gt; Damage: &lt;input type="text" name="attr_npcattack3damage"&gt;&lt;br /&gt; Damage Type &lt;select name="attr_npcattack3type"&gt; &lt;option value="" selected="selected"&gt;Select one:&lt;/option&gt; &lt;option value="b"&gt;Bruising&lt;/option&gt; &lt;option value="c"&gt;Cutting&lt;/option&gt; &lt;option value="f"&gt;Freezing&lt;/option&gt; &lt;option value="p"&gt;Piercing&lt;/option&gt; &lt;option value="s"&gt;Scorching&lt;/option&gt; &lt;option value="u"&gt;Unblockable&lt;/option&gt; &lt;option value="z"&gt;Zapping&lt;/option&gt; &lt;/select&gt;&lt;br /&gt; Properties: &lt;input type="text" name="attr_npcattack3prop"&gt;&lt;br /&gt; Attack &lt;button type="roll" name="npcattack3" value="&amp;{template:rolls} {{title=@{npccharacter_name}}} {{subtitle=@{npcattack3name} }} {{roll= [[[[@{npcattack3damage}]]d6&gt;?{Target Number?|4}]]}}"&gt;&lt;/button&gt; &lt;/section&gt; &lt;footer class="f-col f-center"&gt; &lt;span&gt;&lt;b&gt;&lt;i&gt;©2024 Space Age Games&lt;/i&gt;&lt;/b&gt;&lt;/span&gt; &lt;/footer&gt; &lt;/main&gt; &lt;!-- roll template --&gt; &lt;rolltemplate class="sheet-rolltemplate-rolls"&gt; &lt;div class="sheet-container"&gt; &lt;div class="sheet-header"&gt; {{#title}}&lt;div class="sheet-title"&gt;{{title}}&lt;/div&gt;{{/title}} {{#name}}&lt;div class="sheet-name"&gt;{{name}}&lt;/div&gt;{{/name}} {{#subtitle}}&lt;div class="sheet-subtitle"&gt;{{subtitle}}&lt;/div&gt;{{/subtitle}} &lt;/div&gt; &lt;div class="sheet-content"&gt; {{#allprops() title name subtitle desc}} &lt;div class="sheet-key"&gt;{{key}}&lt;/div&gt; &lt;div class="sheet-value"&gt;{{value}}&lt;/div&gt; {{/allprops() title name subtitle desc}} {{#desc}}&lt;div class="sheet-desc"&gt;{{desc}}&lt;/div&gt;{{/desc}} &lt;/div&gt; &lt;/div&gt; &lt;/rolltemplate&gt; &lt;!-- sheetworker scripts --&gt; &lt;script type="text/worker"&gt; on("change:garb1bonus change:garb2bonus change:shieldbonus change:otherdefmod change:wear sheet:opened", function() { getAttrs(["garb1bonus","garb2bonus","shieldbonus","otherdefmod","wear"], function(values) { let garb1bonus = parseInt(values.garb1bonus)||0; let garb2bonus = parseInt(values.garb2bonus)||0; let shieldbonus = parseInt(values.shieldbonus)||0; let otherdefmod = parseInt(values.otherdefmod)||0; let wear = parseInt(values.wear)||0; let def = garb1bonus + garb2bonus + shieldbonus + otherdefmod - wear; setAttrs({ "defense": def }); }); }); const buttonlist = ["pc","npc"]; buttonlist.forEach(button =&gt; { on(`clicked:${button}`, function() { setAttrs({ sheetTab: button }); }); }); &lt;/script&gt; CSS: /*----------------- Main Layout ------------------*/ /* A CSS Grid example using "grid-template-areas" <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-areas" rel="nofollow">https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-areas</a> */ /* PC Sheet Tab */ .sheet-pc { display: grid; width: 980px; height: 1535px; grid-gap: 5px; grid-template-columns: 225px 245px 245px 235px; grid-template-rows: 70px 415px 385px 625px 20px; grid-template-areas:"header header header header" "skill common common feat" "skill weapon1 weapon2 trait" "misc misc inv companions" "footer footer footer footer"; } /*-----------NPC Sheet Tab---------------*/ .sheet-npc { display: grid; grid-gap: 5px; grid-template-columns: 225px 245px 245px 235px; grid-template-rows: 460px 340px; grid-template-areas:"npcskills npccommon npcattacks npctrait" "npcskills npcatts npcattacks npcfeat"; /*----------------- GENERAL CSS ------------------*/ section { padding: 5px; border-style: solid; } /* CSS Flexbox styling, used for adjusting how content inside section behaves */ .f-col { display: flex; flex-direction: column; } .f-row { display: flex; flex-direction: row; } .wrap { display: flex; flex-wrap: wrap; } .nowrap { display: flex; flex-wrap: nowrap; } .f-center { align-items: center; justify-content: center; } /*----------------- Text &amp; Input styling -----------------*/ @import url("<a href="https://fonts.googleapis.com/css?family=Lexend&amp;display=swap" rel="nofollow">https://fonts.googleapis.com/css?family=Lexend&amp;display=swap</a>"); /* these are for overwriting default CSS that comes from Roll20 */ * { font-family: "Lexend"; } h2 { text-align: center; font-size: 1.4em; color: #B27227; } .sheet-pc label{ margin: 2px; padding: 2px; } .sheet-pc input[type="number"] input[type="text"]{ margin: 2px 4px; } .sheet-pc textarea { width:95%; height:95px; } #number { width: 5em; } /*Configure the tab buttons*/ .charsheet .sheet-pc, .charsheet .sheet-npc, display: grid; } /* show the selected tab */ .charsheet .sheet-tabstoggle:not([value="pc"]) ~ div.sheet-pc, .charsheet .sheet-tabstoggle:not([value="npc"]) ~ div.sheet-npc { display: none; } /*------------- Section-specific CSS -------------*/ .desc textarea { width:95%; height:35px !important; } .backs textarea { width:200px; height:62px !important; } .header { grid-area: header; background-color: #C99439; flex-direction: column; } .skill { grid-area: skill; background-color: #E3D9CA; justify-content: space-evenly; } .common { grid-area: common; background-color: #E3D9CA; } .feat { grid-area: feat; background-color: #E3D9CA; } .feat .repcontainer[data-groupname="repeating_feat"]{ padding-bottom: 0.2em; } .feat .repcontainer[data-groupname="repeating_feat"] .repitem{ margin: 4px 0px; } .trait { grid-area: trait; background-color: #E3D9CA; } .trait .repcontainer[data-groupname="repeating_trait"]{ padding-bottom: 0.2em; } .trait .repcontainer[data-groupname="repeating_trait"] .repitem{ margin: 4px 0px; } .weapon1 { grid-area: weapon1; background-color: #E3D9CA; } .weapon2 { grid-area: weapon2; background-color: #E3D9CA; } .inv { grid-area: inv; background-color: #E3D9CA; } .misc { grid-area: misc; background-color: #E3D9CA; } .companions { grid-area: companions; background-color: #E3D9CA; } .npccommon { grid-area: npccommon; background-color: #E3D9CA; } .npcatts { grid-area: npcatts; background-color: #E3D9CA; } .npcskills { grid-area: npcskills; background-color: #E3D9CA; } .npctrait { grid-area: npctrait; background-color: #E3D9CA; } .npctrait .repcontainer[data-groupname="repeating_npctrait"]{ padding-bottom: 0.2em; } .npctrait .repcontainer[data-groupname="repeating_npctrait"] .repitem{ margin: 4px 0px; } .npcfeat { grid-area: npcfeat; background-color: #E3D9CA; } .npcfeat .repcontainer[data-groupname="repeating_npcfeat"]{ padding-bottom: 0.2em; } .npcfeat .repcontainer[data-groupname="repeating_npcfeat"] .repitem{ margin: 4px 0px; } .npcattacks { grid-area: npcattacks; background-color: #E3D9CA; } .npcloot { grid-area: npcloot; background-color: #E3D9CA; } footer { grid-area: footer; background-color: #C99439; } /*------------------------------------*\ #ROLL TEMPLATES \*------------------------------------*/ .sheet-rolltemplate-rolls { font-family: "Lexend"; } .sheet-rolltemplate-rolls .sheet-container { border: 3px solid black; border-radius: 3px; } .sheet-rolltemplate-rolls .sheet-header { background-color: var(--header-bg-color, #a83521); color: var(--header-text-color, #FFF); text-align: left; text-transform: capitalize; padding: 5px; border-bottom: 2px solid black; } .sheet-rolltemplate-rolls .sheet-title, .sheet-rolltemplate-rolls .sheet-name { font-size: 1.4em; font-weight: bold; } .sheet-rolltemplate-rolls .sheet-subtitle { font-size: 1em; } .sheet-rolltemplate-rolls .sheet-container { --header-bg-color: #a83521; --header-text-color: #FFF; } .sheet-rolltemplate-rolls .sheet-content { display: grid; background: #FFF; grid-template-columns: auto auto; line-height: 1.4em; } .sheet-rolltemplate-rolls .sheet-content &gt; div { padding: 5px; } .sheet-rolltemplate-rolls .sheet-content .sheet-key { font-weight: bold; padding-right: 10px; text-align: right; } .sheet-rolltemplate-rolls .sheet-content :nth-child(4n+3), .sheet-rolltemplate-rolls .sheet-content :nth-child(4n) { background: #EEE; }
1715712239

Edited 1715712252
Sr. K
Pro
Sheet Author
Try moving the header inside the .sheet-pc div in the HTML or removing it from the .sheet-pc grid in the CSS.
Okay, that fixed the issue of the blank space at the top.&nbsp; Any idea why CSS elements are only applying to one tab and not the other?
1715761346
Sr. K
Pro
Sheet Author
Probably CSS missing brackets, the NPC grid is not closed. /*-----------NPC Sheet Tab---------------*/ .sheet-npc { display: grid; grid-gap: 5px; grid-template-columns: 225px 245px 245px 235px; grid-template-rows: 460px 340px; grid-template-areas:"npcskills npccommon npcattacks npctrait" "npcskills npcatts npcattacks npcfeat"; /*----------------- GENERAL CSS ------------------*/
Wow, thank you, what a dumb mistake on my part.&nbsp; That fixed all the formatting, but now the buttons don't work: both tabs are displayed at all times...
1715779546
Sr. K
Pro
Sheet Author
Maybe this is redundant and has a missing opening bracket&nbsp; /*Configure the tab buttons*/ .charsheet .sheet-pc, .charsheet .sheet-npc, display: grid; }
Genius!&nbsp; Thanks for all the help.