Loading...
 
Skip to main content

Features / Usability


How to place modules next to eachother??

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??

Hey Gary i'm trying float:left but it still places the subsequent modules under the first one.

www.playboxed.orgQuestion

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:



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:


HTH,

-RickQuestion
Need more help? Try TikiWiki for Dummies SmartiesQuestion or read my Tiki Blog.


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

Google Search

Google Search

Google Search

 




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.comQuestion


Thanks alot, Ricks and Gary. It looks alot more prettier now. www.playboxed.org.Question