myfanwy
forever tilted
so, hey hi again i'm having an issue with adding more tabs to the class tabs and i'm p sure the fix is simple and i'm just not seeing it but any help would be appreciated. i'm using vertical tabs, as a heads up.
Code:
[nobr]
[class=tabs]
float: left;
background-color: #FFFFFF;
border: 1px solid transparent;
border-radius: 2px;
box-shadow: 0px 0px 1px #FFFFFF;
box-sizing: border-box;
color: black;
font-family: Cinzel;
font-size: 13px;
font-weight: initial;
line-height: 1;
margin: 20px auto;
min-width: 250px;
text-align: center;
width: 30%;
height: 300px;
position: relative;
top: 0px;
margin-left: 0px;
[/class]
[class=tab]
box-sizing: border-box;
cursor: pointer;
display: block;
padding: 22px 16px;
width: 100%;
border: none;
outline: none;
[/class]
[class name=tab state=hover]
background-color: transparent;
[/class]
[script class=tab on=click]
hide tabsContent
set currentTab (getText)
if (eq ${currentTab} hades) (show tabsContenthades)
if (eq ${currentTab} hecate) (show tabsContenthecate)
if (eq ${currentTab} hephaestus) (show tabsContenthephaestus)
if (eq ${currentTab} poseidon) (show tabsContentposeidon)
if (eq ${currentTab} apollo) (show tabsContentapollo)
if (eq ${currentTab} zeus) (show tabsContentzeus)
[/script]
[script=tab]
hide tabsContent
show tabsContenthades
[/script]
[div class=tabs][div class=tab style="border-top-left-radius: 5px; border-bottom-left-radius: 5px;"]hades[/div][div class=tab]hecate[/div][div]hephaestus[/div][div]poseidon[/div][div]apollo[/div][div class=tab style="border-top-right-radius: 5px; border-bottom-right-radius: 5px; width: 100%;"]zeus[/div][/div]
[div class="tabsContent tabsContenthades"][div=height: 100%; background: transparent; position: relative; margin: auto; width: 500px; top: 40px; margin-left: 320px;]a[/div][/div]
[div class="tabsContent tabsContenthecate"][div=height: 100%; background: transparent; position: relative; margin: auto; width: 500px; top: 40px; margin-left: 320px;]b[/div][/div]
[div class="tabsContent tabsContenthephaestus"][div=height: 100%; background: transparent; position: relative; margin: auto; width: 500px; top: 40px; margin-left: 320px;]c[/div][/div][/nobr]
[div class="tabsContent tabsContentposeidon"][div=height: 100%; background: transparent; position: relative; margin: auto; width: 500px; top: 40px; margin-left: 320px;]a[/div][/div]
[div class="tabsContent tabsContentapollo"][div=height: 100%; background: transparent; position: relative; margin: auto; width: 500px; top: 40px; margin-left: 320px;]a[/div][/div]
[div class="tabsContent tabsContentzeus"][div=height: 100%; background: transparent; position: relative; margin: auto; width: 500px; top: 40px; margin-left: 320px;]a[/div][/div]