
So I was hoping to create some tabs on my character sheet to prevent so much scrolling for my players. The problem I'm running into is that even when I copy and paste the following code from a working site, it doesn't want to work in the character sheet.
<div class="tab">
<button class="tablinks" onclick="openCity(event, 'London')">London</button>
<button class="tablinks" onclick="openCity(event, 'Paris')">Paris</button>
<button class="tablinks" onclick="openCity(event, 'Tokyo')">Tokyo</button>
</div>
<!-- Tab content -->
<div id="London" class="tabcontent">
<h3>London</h3>
<p>London is the capital city of England.</p>
</div>
<div id="Paris" class="tabcontent">
<h3>Paris</h3>
<p>Paris is the capital of France.</p>
</div>
<div id="Tokyo" class="tabcontent">
<h3>Tokyo</h3>
<p>Tokyo is the capital of Japan.</p>
</div>
It displays the buttons perfectly and I used this to create all the tabs for my sheet and it displays perfectly then too, but the problem is it displays the info of every single tab in order below the tabs, regardless of what tab is selected. Not sure why this isn't working. I've checked forums for similar codes that people said worked for their radio buttons in a similar fashion, but this still is doing the same thing where it displays all of the tabs at once.Not sure what I'm missing here.