It's better when it's simple

User Tools

Site Tools


CSSPerPage Plugin

Compatible with DokuWiki

  • 2024-02-06 "Kaos" unknown
  • 2023-04-04 "Jack Jackrum" unknown
  • 2022-07-31 "Igor" unknown
  • 2020-07-29 "Hogfather" yes

plugin Enables setting of CSS on a per page, per section basis

Last updated on

Tagged with css, html, style


Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.


Cssperpage enables setting of CSS styles for an entire page or for sections of a page by placing HTML divs around either the entire page or sections. The CSS references these divs and/or their classes. The CSS must be placed in the style.css file of the plugin directory.

This is a screen shot of a page which uses cssperpage to create styles. The demo folder of the cssperpage plugin has a sample dokuwiki page that will produce these styles in combination with the style.css file bundled with the plugin.



Each openDIV form will create an open HTML div tag with a class name. In the case of ~~cssp_openDIV~~ the class name will be opencss. In the case of a user defined name, the class name will be the user defined name. Each openDIV must have a closing closeDIV. The id for these DIVs is #css_per_page. The default class is opencss, and the user defined class is the
user-defined-name. The HTML will look like this:

<div id="#css_per_page" class="opencss">
  --your page data

<div id="#css_per_page" class="user_defined_name">
  --your page data

You can enclose either an entire page between an openDIV and a closeDIV or a part of the page. But if you are enclosing a part of the page, the open and close DIVs cannot cross over edit section boundaries. An edit section boundary is marked by DokuWiki's in-page edit buttons (as opposed to the edit button or link found outside the page, in the tool bars, top of the page, etc).


The CSS for these DIVs will look something like this:

/*user defined class */
#css_per_page.user-defined-name {
/* css_per_page default class: opencss */
    ul {
        list-style-image: url(images/image.gif);
    font-size: 12pt;

Change Log

plugin/cssperpage.txt · Last modified: 2020-07-26 15:45 by turnermm

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki