Hello,
My website has pages that shows information about environment, Geographical system and so on.
I have used nice menu to show the menus.
I want to change the color of the nice menu ,the right and left side bar and the background color of each page depending on the information it contains.
e.g. green shade on environment page.
To achieve this I may require different css to be loaded on the fly(dynamically)
How I can do this for pages and nice menu?

Thanks.

Comments

devin carlson’s picture

Status: Active » Closed (fixed)

Drupal a number of tags to the <body> tag when the page is generated such as the current content type.
You can adjust the colors of certain sections of your website by overriding your theme's base colors.

For example, you could create a content type called "environment".

By default, paragraph text would appear black:

p {color: black;}

But on a page that is made using the tree content type, you could make paragraph text green:

.environment p {color: green;}

If you require a very specific case, try adding your own classes to the body.