Page 1 of 1

css for each category

Posted: April 4th, 2011, 11:38 pm
by Seiduna
Hello,

I have a question that I haven't found the answer, and this is one of the rare mediawiki forums that I found, so...
here is my question:

I want to use categories in mediawiki and I will have a bunch or pages that belong to those categories.
(I made my own skin using one of many web tutorials)

I want to have a different css for each category (and all its pages)
So when someone is browsing the pages in one category h1 should be e.g. red colour on white background,
and when someone goes to second category (and all its pages) h1 should be e.g. blue on white.

To give a different example,
I want category foo and all its pages (members) to have their own h1(e.g. red colour on white background)
and category bar and all its pages (members) to have their own h1 (e.g. blue on white)

Also I am newbie to mediawiki and English is not my native language...

Thank you ever so much.

Re: css for each category

Posted: April 20th, 2011, 9:57 pm
by Paul
You need to find category related tags for each category and put them in CSS...