• 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 How to get line breaks in tabs?

MDL

RIP Doctor Calgori (2012-2017)
Hey I'm trying to make an interest check using the tabs found in Tutorial - RpNation - BBCode+ Guide. But when I add text content to each tab there are no paragraphs and they just end up on the same row. How to fix this?


Example:

[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: 33%; [/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 style="border-top-left-radius: 5px; border-bottom-left-radius: 5px;"]Information[/div][div class=tab]Rules[/div][div class=tab style="border-top-right-radius: 5px; border-bottom-right-radius: 5px; width: 34%;"]Characters[/div][/div] [div class="tabsContent tabsContentInformation"]line1 line2 line 3 line 4[/div] [div class="tabsContent tabsContentRules" style="display: none;"]line1 line2 line 3 line 4[/div] [div class="tabsContent tabsContentCharacters" style="display: none;"]line1 line2 line 3 line 4[/div]
 
There’s a “nobr” being used in the code.

So when you want a line break (for a new paragraph) just put the [*br][*/br] tag. (But remove the *s).

Tell me if it doesn’t work :)
 
There’s a “nobr” being used in the code.

So when you want a line break (for a new paragraph) just put the [*br][*/br] tag. (But remove the *s).

Tell me if it doesn’t work :)
Ok you are a god. Thanks!
 

Users who are viewing this thread

Back
Top