Collapsing table code for profiles
The Best
Incredible Incredulator

Age: 38 | Height: smol | Race: Attuned | Nationality: Outlander | Citizenship: Halo
Level: 0 - Strg: 108 - Dext: 42 - Endr: 8 - Luck: 4 - Int:
Mowgli - Mythical - Crazy fire-breathing horse
Played by: Odd Offline
Change author:
Posts: 1,408 | Total: 16,270
MP: 3059
#1
This is the code to create collapsable fields in your profiles, like this:




See below for Neo wizardry.
Reply
php magician

Age: 116 | Height: | Race: Attuned | Nationality: Natural | Citizenship: Hollowed Grounds
Level: - Strg: - Dext: - Endr: - Luck: - Int:
Athena - Mythical - Shire
Played by: Neowulf Offline
Change author:
Posts: 52 | Total: 642
MP: 970
#2
You can also use this, and style it as you please. It works on posts and slides (and adding it was about 5% of the work of beating up the JavaScript of the other, which I might still do as a point of curiosity).

I am yo header click mee



Display by default:
Code:
<div class="slideheader">I am yo header</div>
<div class="slidecontent">Toggle meee</div>

Hidden by default:
Code:
<div class="slideheader">I am yo header click mee</div>
<div class="slidecontent" style="display: none;">Toggle meee</div>
Reply
php magician

Age: 116 | Height: | Race: Attuned | Nationality: Natural | Citizenship: Hollowed Grounds
Level: - Strg: - Dext: - Endr: - Luck: - Int:
Athena - Mythical - Shire
Played by: Neowulf Offline
Change author:
Posts: 52 | Total: 642
MP: 970
#3
I also fixed the accordion thing for posts, but you'll need to remove the script from your profile's Styling field or it won't work there now. Odd can beat me up if she dislikes this.

If you use it on posts and use the button code, MAKE SURE YOU DO NOT HAVE A LINE BREAK BETWEEN IT AND THE FOLLOWING DIV.

Code:
<button class="accordion">This is where the section heading goes.</button><div class="panel">
Your text and such goes here.
</div>

If you use a div you can put a line break in.

Code:
<div class="accordion">This is where the section heading goes.</div>
<div class="panel">
Your text and such goes here.
</div>

*shrugs and runs out*
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)


RPG-D