How to place modules next to eachother?? Posted by Ravi 01 May 2008 01:31 UTC Hey guys on my site im trying to place a module next to another module in a wiki page but instead it places the 2nd module underneath the first??
Posted by Ravi 01 May 2008 03:55 UTC Hey Gary i'm trying float:left but it still places the subsequent modules under the first one. www.playboxed.org
Posted by Rick Sapir / Tiki for Smarties 01 May 2008 10:54 UTC You can use the FLOAT, as Gary suggests: Copy to clipboard{DIV(float=>right)}{MODULE(module=forums_last_posts, max=5) /}{DIV} {MODULE(module=last_modif_pages, max=5) /} To produce: Newest Forum Posts Glitch in Control Panel listTikiWiki 27.7: Unable to log in with 2FA enabled Latest Changes Roundtable Meeting 2026 12 Lifecycle Roundtable Meeting 2026 11 CMS Landscape UserPagepvk ...more Or maybe a SPLIT for better layout control: Copy to clipboard{SPLIT(fixedsize=y, colsize=180|180)} {MODULE(module=forums_last_posts, max=5) /} --- {MODULE(module=last_modif_pages, max=5) /} {SPLIT} to produce: Newest Forum Posts Glitch in Control Panel listTikiWiki 27.7: Unable to log in with 2FA enabled Latest Changes Roundtable Meeting 2026 12 Lifecycle Roundtable Meeting 2026 11 CMS Landscape UserPagepvk ...more HTH, -Rick Need more help? Try TikiWiki for Dummies Smarties or read my Tiki Blog.
Posted by Gary Cunningham-Lee 01 May 2008 12:21 UTC Copy to clipboard{MODULE(module=>google,float=>left)}{MODULE}{MODULE(module=>google,float=>left)}{MODULE}{MODULE(module=>google,float=>left)}{MODULE}{MODULE}{MODULE(module=>google,float=>left)}{MODULE} produces: Google Search tiki.org WWW Google Search tiki.org WWW Google Search tiki.org WWW Google Search tiki.org WWW The modules' floated divs must have a set width to line up side by side when floated. Otherwise, they default to 100% wide and so naturally will go under each other rather than alongside. If div.box doesn't have a width in the theme stylesheet, you could add it or else put each module plugin inside a DIV plugin that has a width specified as a parameter. Also, I didn't test it but it looks like maybe all the modules' code should be on one line (no starting any on a new line after a linebreak). (In this post, I added a pair of no-parse tags with some empty lines between them to push the text down below the modules. Normally text flows around floated divs.) -- Gary - http://zukakakina.com
Posted by Ravi 02 May 2008 06:01 UTC Thanks alot, Ricks and Gary. It looks alot more prettier now. www.playboxed.org.