Creating Views rows with specific classes?
You need to modify views-view-unformatted.tpl.php.

In your views, in the third column click on theme and choose the how specific should be you file, for the full view or for that display. Copy into your theme folder and rename it.

You can find more info here http://api.drupal.org/api/views/theme%21theme.inc/group/views_templates/7

    &lt;?php if (!empty($title)): ?&gt;
     &lt;h3&gt;&lt;?php print $title; ?&gt;&lt;/h3&gt;
    &lt;?php endif; ?&gt;
     &lt;?php
     $i = 1;
     $num_rows = count($rows);
     $num_rows = $num_rows -2;
     ?&gt;
    &lt;?php foreach ($rows as $id =&gt; $row): ?&gt;
    &lt;?php
     if ($i == $num_rows){
       $classes_array['YourCLass'];
     }
     ?&gt;
     &lt;div &lt;?php if ($classes_array[$id]) { print 'class="' . $classes_array[$id] .'"';  } ?&gt;&gt;
      &lt;?php print $row; ?&gt;
      &lt;?php $i++;?&gt;
     &lt;/div&gt;
    &lt;?php endforeach; ?&gt;


Flush cache