Loading...
 
Themes

Themes


Re: changing the width of modules in wiki body

Japan

You have to edit the stylesheet. Modify styles/tikipedia.css by adding something like this:

Copy to clipboard
.wikitext .box {width:100%}


Normally modules' box divs in the Tikipedia theme have a width of 170px. The above code will override the normal box width, specifying that boxes in the wikitext div (the wiki section of the page) should be 100% wide (that is, the full width of their containing div, the wiki area of the page.

If you want the boxes to not be 100% but somewhat narrower, change the width as you please. It must be either a percentage or a width in pixels (or ems, etc.), like 90% or 500px.

If you want to set a width for a particular module in the wiki area, such as your External Links module, but not for other module boxes, you can do it this way:

Copy to clipboard
.wikitext .box-directory_category_sites {width: 100%}


Every module has its own name (or class in CSS syntax, as indicated by the preceding "."), and you can look in the source of the displayed page to find out what the names are, something like div class=" box box-directory_category_sites" (in this case the div has two classes, separated by a space).

-- Gary - themes.tw.o/Zuka

There are no comments at this time.