MyBB Community Forums

Full Version: How to Make Collapsable Content Boxes?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can I create content boxes to put on my forum index/side boxes that can collapse? Is there a code I can use? Thanks.
Can anyone help?
Can anybody help me?
<table width="100%" cellpadding="6" cellspacing="1" border="0" class="tborder">
<tbody>
            <tr>
                <td class="thead" colspan="2">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['newbox_e']}.gif" id="newbox_img" class="expander" alt="[-]" title="[-]" /></div>
              <strong>Thead name</strong>
                </td>
            </tr>
        </tbody>
        <tbody style="{$collapsed['newbox_e']}" id="newbox_e">  
            <tr>
                <td class="trow1">** Content Here **</td>
            </tr>
        </tbody>
    </table>
<br />
Words cannot express how thankful I am of you, Doobie.

THANKS.
One problem though--3/4 of mine are not collapsing. They are simply scrolling me up/down the page.

http://www.tncgraphics.mybbnew.com
After more observation, the other boxes are controlling the top, and only functioning one. Can anyone help me get all of them working?