Cookbook /
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!
Questions answered by this recipe
- 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
See Also
Some links outside pmwiki.org which are pmwiki specific:
Some generic CSS Style tutorials:
- http://www.csstutorial.net/
- http://www.w3schools.com/Css/default.asp
- (Lots more - google for "CSS tutorial")
Contributors
Peter Bowers contributed his LACK of knowledge in hopes others would contribute their REAL knowledge... ;-)