Views uses a wide array of CSS classes on all of its content to ensure that you can easily and accurately select exactly the content you need in order to manipulate it with CSS. It is possible to enter a custom css class under Style settings. The CSS class names will be added to the view. This enables you to use specific CSS code for each view. You may define multiples classes separated by spaces. Typically, every view is wrapped in a div with the name of the view as part of its class (for all these examples, we will assume the name of the view is myview), as well as the generic class 'view':
<div class="view view-myview">
In your CSS, you can modify all views:
div.view {
  border: 1px solid black;
Or just your view:
div.view-myview {
  background: yellow;
By default, the general view template also provides the following classes to easily style other areas of the view: So for example:
div.view-myview div.view-header {
  /* make the header stand out */
  font-size: 120%;
  font-weight: bold;

div.view-myview div.view-footer {
  /* Make the footer less important */
  font-size: 80%;
  font-style: italic;
  color: #CCC;
In the above example, we whimsically made the header bold and in a bigger font, and the footer smaller, italicized, and greyish.

Views with fields

If your view has fields, each field is uniquely tagged with its ID. A field's ID may be gleaned from the Theme: Information page. Note that due to CSS rules, any _ in the id will be converted to - automatically, so if you have a field whose id is 'edit_node' (this is the field used to provide an "edit" link to a node), it will be 'edit-node'. Additionally, to make sure that the view IDs don't conflict with other css classes in the system, they will be pretended with 'views-field-'; thus, the final CSS class for the field with the id 'edit_node' will be views-field-edit-node. Exactly how this appears is going to depend upon the style you're using. For example, the 'unformatted' style uses div.views-field-edit-node and div.views-label-edit-node to access that particular field, but a table would use td.views-field-edit-node and th.views-field-edit-node to access the table header; or just .views-field-edit-node to affect both.
.view-myview th {
  color: red; /* make all headers red */

.view-myview .views-field-title {
  font-weight: bold; /* Make the 'title' field bold */

.view-myview td.views-field-body {
  font-size: 60%; /* Make the text in the body field small */