Step One: Adding the Page Class
To be placed above the <head> of your template's index.php file:
Step Two: Reference the CSS in Index.php
We want to modify quite a bit of the template (not just what's inside the <BODY> tag), so we'll add the following code just after the reference to any other stylesheets (CSS) in our template's index.php:
What we're doing here is telling Joomla! to look for a CSS file that matches the page class that we specify for a given menu item. Tricky, huh? Note that you may need to remove the / from the template location, e.g. =templates/yourtemplatename/css/..
Step Three: Create a Matching CSS File
Finally, we need to specify the page suffix for the menu item in the Joomla! administrator area, and create a corresponding CSS file.

For example, for this code labs page we specified 'codelabs' as seen in the image above.
Now we need to create a corresponding CSS file, e.g. "codelabs.css".· That CSS file can then override whatever your default CSS styles already in place are, if you choose.
In the example above, you would place 'codelabs.css' in the yourtemplatename/css directory.· Here's the CSS we used to change the design on this page from our normal CartaNova background of an orange farm and windmills to the mountains, sky and lake you see here. We also changed the default site background color.
It's as simple as overriding one line of CSS! Use this method sparingly though - consistency in visual web site design cannot be undervalued.
For more information and a few alternative methods for modifying your template display through the Joomla! Page Class function, be sure to check out Using the Page Class Suffix in Template Code at the Joomla! Documentation Wiki.
Joomla!'s· "