Loading...
 
Skip to main content

Features / Usability


Page Background Colors

I would like to put some color into some of my pages — but not all. Do I have to figure out something in the css or is there a way to do that in the wiki-syntax codes?

tnx

mark c. miller
ey...@co...
Indianapolis IN

It depends on what you want to do exactly. Where do you want the color — just in the wikitext area, or as a body background color for your entire page? How do you want the color determined — by Tiki section (wiki, gallery, forum...), or according to specific wiki pages? These are all possible, but the way depends on what you want to do.

-- Gary - themes.tw.oQuestion

> It depends on what you want to do exactly. Where do you want the color — just in the wikitext area, or as a body background color for your entire page? How do you want the color determined — by Tiki section (wiki, gallery, forum...), or according to specific wiki pages? These are all possible, but the way depends on what you want to do.
>
> — Gary - themes.tw.oQuestion
>

1. Just the wiki text box. I don't want to type "white-on-black". I'm using my wiki in my classroom and want to make assignments look diffferent from replies, comments, etc.

2. I'm really new to all this — how do you get your response in the forum to show up as it's own post as yours did as opposed to an edited reply as mine is?

> 1. Just the wiki text box. I don't want to type "white-on-black". I'm using my wiki in my classroom and want to make assignments look diffferent from replies, comments, etc.

You could use the DIV plugin and specify the background color as a parameter. Click "Show plugin help" at the bottom of the wiki editpage for the syntax to use. (In this case, it looks like this:
Copy to clipboard
{DIV(bg=>#6ED793)}Text goes here....{DIV}

Colors can be specified by name (web color names only) or by hex code. You can use an Opera widget (The Colours of the Rainbow) or Firefox Extension (Colorzilla), or standalone utility or graphics program to find the color codes.

Floated right
This box is floated to the right. Syntax: {BOX(title=>Floated right, bg=>yellow, width=>45%, align=>center, float=>right)}Text goes here...{BOX}
The BOX plugin
The BOX plugin is another possibility for some more detailed styling. It looks like this.

(Syntax for this box: {BOX(title=>The BOX plugin, bg=>#70A1D2, width=>50%, align=>center, float=>left)}Text goes here...{BOX})

(Since the box "floats," you might have to add some line returns after it to push the following text, etc. down below it on the page.)






Be aware that the text color is set by the theme's stylesheet, not the plugin. If the site user changes his/her theme preference, it might cause contrast problems with the plugin background colors. A solution would be to limit site themes to those with light-colored wikitext backgrounds/dark-colored text (or to dark backgrounds/light text, just so that they're consistent and will be OK contrast-wise with background colors set by plugins).

> 2. I'm really new to all this — how do you get your response in the forum to show up as it's own post as yours did as opposed to an edited reply as mine is?

I just deleted the quoted portion (lines with ">" at left margin).

-- Gary - themes.tw.oQuestion