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

Looking for some CSS help.

1565122023

Edited 1565126009
Nora
Pro
First time on the forums here, hi everyone. Not sure if this goes here. I'll preface this by saying that I have the permission and am in contact with the original creator of this character sheet. Its for the Naruto D20 system. The system understandably has a lot of toggleable abilities and I was trying to add an extra tab to the character sheet that contained all these toggle switched. I've got the information populating in the raw HTML data but whenever we upload it to test the sheet, the tab doesn't appear.... I was hoping that someone could lend me a hand with figure this out. Its a project a long time in the making... This is the original Code;&nbsp; <a href="https://github.com/Roll20/roll20-character-sheets/blob/master/Naruto%20d20%20Modern/Naruto%20d20%20Modern.html" rel="nofollow">https://github.com/Roll20/roll20-character-sheets/blob/master/Naruto%20d20%20Modern/Naruto%20d20%20Modern.html</a> And here I have uploaded my edited files;&nbsp; <a href="https://github.com/AzothCrow/ND20-Character-Sheet-Edits" rel="nofollow">https://github.com/AzothCrow/ND20-Character-Sheet-Edits</a> Thank you in advance for all the feedback.
1565122439
Andreas J.
Forum Champion
Sheet Author
Translator
The CSS refers to the visual part of the tabs as div s, while they seem to be span s in the html, so that's at least something to look at. Have you tried to look at the sheet with Dev Tools on either Chrome or Firefox?
1565123336

Edited 1565123703
Nora
Pro
Andreas J. said: The CSS refers to the visual part of the tabs as div s, while they seem to be span s in the html, so that's at least something to look at. Have you tried to look at the sheet with Dev Tools on either Chrome or Firefox? I uploaded a few pictures of me running it in chrome with the dev tools. Section 8 is the section I'm trying to create a tab for. It populates my table well enough. I even have the tab populating, you can see the tab in one of the pictures I uploaded. But the tab is completely blank and wont show my table for some reason.&nbsp;
Looking through this....I may have put the tab's div within the div for tab 6 instead? hmmm&nbsp;
1565124704
Andreas J.
Forum Champion
Sheet Author
Translator
Another thing to not is that using &lt;table&gt; to structure your sheet is a bad idea, and won't be accepted to the repository, just a thing to know if the aim is to submit it as one of the public sheets.
1565125377

Edited 1565126036
Nora
Pro
So Great news. I was missing a div. I've got it working here;&nbsp; <a href="https://app.roll20.net/join/5006217/cBe7Gw" rel="nofollow">https://app.roll20.net/join/5006217/cBe7Gw</a> Buuut, now my attack rolls are not working. The statistical bonuses are all working, except attack and damage. Its saying; No attribute was found for @{Grap Afruw|Q7} When I try to roll an attack roll. Uploading the modified files now. It also deletes the names from the table everytime the sheet reloads. So frustrating. I really should rename this thread HTML help but I dont know how to lol.
1565127251
Andreas J.
Forum Champion
Sheet Author
Translator
On row 4636, it reads: &lt; td &gt;&lt; select class = " sheet-number " name = " attr_Q17 " title = " @{Q7} " style = " width : 95 % " &gt; The name seems to be a typo and should be named " attr_Q7 "
Andreas J. said: On row 4636, it reads: &lt; td &gt;&lt; select class = " sheet-number " name = " attr_Q17 " title = " @{Q7} " style = " width : 95 % " &gt; The name seems to be a typo and should be named " attr_Q7 " I literally found this the second you typed this haha! Are you a telepath?!
Okay so. Got that working. Now I just need to figure out why the name keeps deleting itself when the sheet is closed. Well, it also appears that it isnt properly adding the attr_TotalATK to the weapon's attack rolll but I think I know what that is.
1565128093
Andreas J.
Forum Champion
Sheet Author
Translator
Justin S. said: Okay so. Got that working. Now I just need to figure out why the name keeps deleting itself when the sheet is closed. The disappearing name, could you be more specific about where it happens? It's likely that the input tag is improperly named, like forgetting "attr_" at the beginning of the name, it's a common mistake. Well, it also appears that it isnt properly adding the attr_TotalATK to the weapon's attack rolll but I think I know what that is. Couldn't find a "TotalATK" attribute on the sheet with ctrl+f.
Andreas J. said: Justin S. said: Okay so. Got that working. Now I just need to figure out why the name keeps deleting itself when the sheet is closed. The disappearing name, could you be more specific about where it happens? It's likely that the input tag is improperly named, like forgetting "attr_" at the beginning of the name, it's a common mistake. Well, it also appears that it isnt properly adding the attr_TotalATK to the weapon's attack rolll but I think I know what that is. Couldn't find a "TotalATK" attribute on the sheet with ctrl+f. So, I fixed the attack roll thing. I just wasn't applying the value in the weapons section like a dummy. So when I fill out a name for the ability and close the sheet. The field is blank when I re open the sheet.
1565128729
Andreas J.
Forum Champion
Sheet Author
Translator
Justin S. said: So when I fill out a name for the ability and close the sheet. The field is blank when I re open the sheet. What row of code does this ability appear on or what's the exact name of the input field? What is this connected to, Attacks? That's still quite ambiguous.&nbsp;
Andreas J. said: Justin S. said: So when I fill out a name for the ability and close the sheet. The field is blank when I re open the sheet. What row of code does this ability appear on or what's the exact name of the input field? What is this connected to, Attacks? That's still quite ambiguous.&nbsp; Okay so; (if you have the code open) lines 4522-4713 is the tab. The variables that get added throughout the sheet are calculated and defined in lines 4701-4710. But all of that is currently working. Now I have this name issue.&nbsp; Each row of the table is generated in lines 4544-4697. They are all formatted like this (I've highlighted the line that creates the space to type in the ability name); This looks like this on the C.S.; If I type a name into the field and then close the sheet. When I open the sheet, the names are gone.
1565129755

Edited 1565130012
Andreas J.
Forum Champion
Sheet Author
Translator
Justin S. said: The problem might be that you have type=" Text ", not type=" text ". Things like that are quite likely case-sensitive. Edit: and on row 4701, you have disabled = " true " inside the input, which likely disables input/saving, and it's value isn't a calculation either.
Andreas J. said: The problem might be that you have type=" Text ", not type=" text ". Things like that are quite likely case-sensitive. Edit: and on row 4701, you have disabled = " true " inside the input, which likely disables input/saving, and it's value isn't a calculation either. Wooooooooooooooooow, it was the case. Dude, thanks a ton haha.&nbsp;