• When posting, please be aware that artistic nudity is still nudity and not allowed under RpNation rules. Please edit your pictures accordingly!

    Remember to credit artists when using work not your own.

Help Help my tabs, please?

RageOfInfinity

Improbability is a bad reason to disbelieve
So, with this setup, my tabs can't have more than one word for their titles.

Is there any way to fix that?

[class=tabs] background-color: #509cf7; border-radius: 5px; box-shadow: 0px 0px 5px #000088; box-sizing: border-box; color: #e4eeff; font-size: 18px; font-weight: bold; line-height: 1; margin: 20px auto; min-width: 350px; text-align: center; width: 50%; [/class] [class=tab] box-sizing: border-box; cursor: pointer; display: inline-block; padding: 10px 0; width: 29.75%; [/class] [class name=tab state=hover] background-color: #2b7abb; [/class] [script class=tab on=click] hide tabsContent set currentTab (getText) if (eq ${currentTab} Information) (show tabsContentInformation) if (eq ${currentTab} Rules) (show tabsContentRules) if (eq ${currentTab} Characters) (show tabsContentCharacters) [/script] [div class=tabs] [div class=tab]Information[/div] [div class=tab]Rules[/div] [div class=tab]Characters[/div] [/div] [div class="tabsContent tabsContentInformation"]Some general information about Generic RP #42.[/div] [div class="tabsContent tabsContentRules" style="display: none;"]A few rules you should follow in this roleplay.[/div] [div class="tabsContent tabsContentCharacters" style="display: none;"]Create your character using the provided character generator.[/div]
 
You have to have any tabs with multiple words within quotes.

if (eq ${currentTab} Information) (show tabsContentInformation) is for singular.
if (eq ${currentTab} "Information Tab Name") (show tabsContentInformation) for multiple
 

Users who are viewing this thread

Back
Top