views:

49

answers:

1

We're looking to give pages in a specific category a specific background colour. Since every page in this category makes use of a specific template, we're ideally looking for a template change.

Can this be done?

+2  A: 

Use the PageCSS extension, you should be able to put the css in your template, which would then apply to the pages it is on.

example:

 <css>
  #bodyContent { background-color: yellow; }
 </css>
Adrian Archer
This is a neat solution, thanks. But on my installation it is not working (MW 1.13.2). I'm checking to see why that is...
Mark Robinson
Slight change to the above code:<css>#mw_content{ background-color: yellow; }</css>
Mark Robinson