Collapse Tables by Default
by
19 Jul 2004
Well, i just thought i would tell you all how to make things be collapsed by default because i didnt see anything relating to it on the forums. In vB3, theres the handy feature to collapse items, but once your cookies are cleared, they are expanded by default again..well here is how to default it to collapsed in your templates, find the tbody you require.. for example.. Code:
<tbody id="collapseobj_forumhome_XXXXXXXX" style="$vbcollapse[collapseobj_forumhome_XXXXXXXX]"> Code:
<tbody id="collapseobj_forumhome_XXXXXXXX" style="display:none"> And thats it, your table is now collapsed by default. Obviously you can expand it as usual. Hope you enjoyed this little tip and apologies if its already posted! |