Loading...
 
Skip to main content

Features / Usability


Specifying width for modules

I have created a module and can call it from a wiki page but the module's width is defined by the size of the left or right panel... I want the module to be the full width of the central text area. Any ideas on how I would manage this? Do I specify the width in the module, or in the wiki page when calling the module or do I have to go looking in the tpl file?

Modules use (are contained in) a CSS div with the class "box" and their width is usually specified in the theme stylesheet, so to modify that div when it appears in a wiki page you can use

.wikitext div.box {width: 100%;}

or whatever width (in pixels or percent) that you want. This CSS addition can either go in the stylesheet you are using (in the styles directory), or in Tiki 3 and newer you can make a separate file called "custom.css" and put it in, for example (let's say you're using the theme "TheNews"), styles/thenews/. This second method is better because you won't need to worry about your modification being overwritten in the next TikiWiki release update.

-- Gary