Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

Styles

Summary: Practical examples of CSS Style use (with some explanation)
Version:
Prerequisites:
Status: currently just a placeholder...
Maintainer: PLEASE FILL IN YOUR NAME HERE!
Categories: Styles Layout CSS

Questions answered by this recipe

This section is optional; use it to indicate the types of questions (if any) this recipe is intended to answer.

  • What are some of the ways CSS Styles can be used to help in formatting my wiki pages?

Description

Practical examples of CSS Styling (with brief explanations)

Examples

Indenting a table

(from pmwiki-users list on and around 4/24/2008)

INSTRUCTIONS:

Class "indent" is built-in and it is defined as wiki style with indentation value 40px. You can add new class (style):

	1. as a wikistyle - put $WikiStyle['indent2']['margin-left'] = '80px'; to your config.php

	or

	2. as a CSS style - put .indent2 { margin-left:80px; } to your CSS (pmwiki.css or other file depending on your skin)
REPLY:

I use a slightly modified version of the monobook theme. I added the line ".indent2 { margin-left:80px; }" to the end of the monobook.css, actually renamed mononei.css. Thereafter I put the "class=indent2" into the table declaration, e.g.

(:table class=indent2 border=1 cellpadding=5 cellspacing=0:)

Release Notes

If the recipe has multiple releases, then release notes can be placed here. Note that it's often easier for people to work with "release dates" instead of "version numbers".

See Also

Some links outside pmwiki.org which are pmwiki specific:

Some generic CSS Style tutorials:

Contributors

Peter Bowers contributed his LACK of knowledge in hopes others would contribute their REAL knowledge... ;-)

Comments

Edit - History - Print - Recent Changes - Search
Page last modified on September 10, 2011, at 11:42 AM