Add a "class selection" field to content item via CCK?
// This code will add a class to the node based on a field in that node
function THEME_preprocess_node(&amp;$vars) {
$node = $vars['node']; 
$output = '';

switch($node-&gt;type) {
  case 'advertisement':

  // Set class based on editor color selection; code duplicated for clarity.
  $field = field_get_items('node', $node, 'field_background_color');
  if($field) {
    $theme = field_view_value('node', $node, 'field_background_color', $field[0]);
    $term_name = $theme['#title'];
    $term_name = str_replace(' ', '-', $term_name);
    $css_name = strtolower($term_name);
    $vars['classes_array'][] = $css_name;
  }
  break;
  }
}