Add class that surrounds all tables (or any other node,field etc...) using preprocess template? I have been able to find information on adding classes to tables and other items in my pages, however, I cannot find any information on wrapping the entire table for example in a div through the preprocess function. 

I added this for example:

function bootstrap_preprocess_views_view_table(&amp;$vars) {
    $vars['classes_array'][] = 'table table-striped';
}


My tables are stripped which is what I was after, however, I would like to wrap the entire table itself in &lt;div class="table-responsive"&gt;{TABLE}&lt;/div&gt;, but am not finding where / how to add the class to show before the table?

Adding a picture of where it could be added:
you can override views-view-table.tpl.php template to achieve this.

Like :

&lt;div class="table-responsive"&gt;
&lt;table &lt;?php if ($classes) { print 'class="'. $classes . '" '; } ?&gt;&lt;?php print $attributes; ?&gt;&gt;
   &lt;?php if (!empty($title) || !empty($caption)) : ?&gt;
     &lt;caption&gt;&lt;?php print $caption . $title; ?&gt;&lt;/caption&gt;
  &lt;?php endif; ?&gt;
  &lt;?php if (!empty($header)) : ?&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;?php foreach ($header as $field =&gt; $label): ?&gt;
          &lt;th &lt;?php if ($header_classes[$field]) { print 'class="'. $header_classes[$field] . '" '; } ?&gt;&gt;
            &lt;?php print $label; ?&gt;
          &lt;/th&gt;
        &lt;?php endforeach; ?&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
  &lt;?php endif; ?&gt;
  &lt;tbody&gt;
    &lt;?php foreach ($rows as $row_count =&gt; $row): ?&gt;
      &lt;tr &lt;?php if ($row_classes[$row_count]) { print 'class="' . implode(' ', $row_classes[$row_count]) .'"';  } ?&gt;&gt;
        &lt;?php foreach ($row as $field =&gt; $content): ?&gt;
          &lt;td &lt;?php if ($field_classes[$field][$row_count]) { print 'class="'. $field_classes[$field][$row_count] . '" '; } ?&gt;&lt;?php print drupal_attributes($field_attributes[$field][$row_count]); ?&gt;&gt;
            &lt;?php print $content; ?&gt;
          &lt;/td&gt;
        &lt;?php endforeach; ?&gt;
      &lt;/tr&gt;
    &lt;?php endforeach; ?&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;


Get a look for override views template here

For other tables Override theme_table and change its return statement Like:

return '&lt;div class="table-responsive"&gt;'.$output.'&lt;/div&gt;';