For better Theming it would be fine if the table-output inside "views-table" has not only "odd" and "even".
This adds "first" and "even" like in Drupal's Menus:

function basic_preprocess_views_view_table(&$vars) {
  $count=count($vars['rows']);
  if ($count) {
    $vars['row_classes'][0][]='first';
    $vars['row_classes'][$count-1][]='last';
  }
}

The function resides in your Theme template.php. Change function name according your theme.

Maybe ists possible to include this code in function template_preprocess_views_view_table(&$vars) inside views/theme/theme.inc

Comments

dawehner’s picture

It does already has

  $vars['row_classes'][0][] = 'views-row-first';
  $vars['row_classes'][count($vars['row_classes']) - 1][] = 'views-row-last';

So i think that is not really needed, or?

kle’s picture

Status: Active » Closed (fixed)

sorry - wrong version (I looked at 2.6) in 2.8 it's fine.