Little Garland CSS help needed

AppleBag - February 21, 2009 - 12:24

Is there a way in Garland to ONLY change the color of the links in forum posts, while leaving the color of the links on the rest of the site the same?

body classes

marcvangend - February 21, 2009 - 13:26

In Drupal 6, a number of classes is automatically added to the body tag. This allows you to use css like:

body.section-forum a {
  color: #CC0000;
}

There are a couple of ways to get similar body classes like this in Drupal 5, like the Themer module and this method: http://mydrupalblog.lhmdesign.com/classes-almost-everything-drupal-theme. Some D5 themes, like Zen, do this by default.

 
 

Drupal is a registered trademark of Dries Buytaert.