diff --git a/nodesinblock.install b/nodesinblock.install
index 3802e90..0f705aa 100644
--- a/nodesinblock.install
+++ b/nodesinblock.install
@@ -54,6 +54,13 @@ function nodesinblock_schema() {
         'default' => '',
         'description' => 'Render type of node in block, teaser, page or a nd string.',
       ),
+      'css_class' => array(
+        'type' => 'varchar',
+        'length' => 255,
+        'not null' => TRUE,
+        'default' => '',
+        'description' => 'String containing the classes for the block.',
+      ),
     ),
     'primary key' => array('nid'),
     'indexes' => array(
@@ -98,3 +105,10 @@ function nodesinblock_update_6003() {
 function nodesinblock_update_7001() {
   db_change_field('nodesinblock', 'render', 'render', array('type' => 'varchar', 'not null' => TRUE, 'length' => 40, 'default' => ''));
 }
+
+/**
+ * Update 7002: Add field for css class.
+ */
+function nodesinblock_update_7002() {
+  db_add_field('nodesinblock', 'css_class', array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => '', 'description' => 'String containing the classes for the block.'));
+}
diff --git a/nodesinblock.module b/nodesinblock.module
index 3c26c31..f7a27b9 100644
--- a/nodesinblock.module
+++ b/nodesinblock.module
@@ -107,13 +107,14 @@ function nodesinblock_form_node_form_alter(&$form, $form_state) {
 
     if (!empty($block_options)) {
 
-      $node_info = array('weight' => 0, 'visibility' => '*', 'delta' => -1, 'render' => 'full');
+      $node_info = array('weight' => 0, 'visibility' => '*', 'delta' => -1, 'render' => 'full', 'css_class' => '');
 
       if (!empty($form_state['values']) && isset($form_state['values']['nodesinblock_visibility'])) {
         $node_info['visibility'] = $form_state['values']['nodesinblock_visibility'];
         $node_info['weight'] = $form_state['values']['nodesinblock_weight'];
         $node_info['delta'] = $form_state['values']['nodesinblock_delta'];
         $node_info['render'] = $form_state['values']['nodesinblock_render'];
+        $node_info['css_class'] = $form_state['values']['nodesinblock_css_class'];
       }
       elseif (!empty($form['nid']['#value'])) {
         $node_info = db_query("SELECT * FROM {nodesinblock} WHERE nid = :nid", array(':nid' => $form['nid']['#value']))->fetchAssoc();
@@ -163,6 +164,14 @@ function nodesinblock_form_node_form_alter(&$form, $form_state) {
         '#description' => t('The code between the round brackets indicate the visibility setting of the block.<br />Pos = Show on only the listed pages.<br />Neg = Show on every page except the listed pages.'),
       );
 
+      $form['nodesinblock']['nodesinblock_css_class'] = array(
+        '#type' => 'textfield',
+        '#title' => t('CSS class(es)'),
+        '#default_value' => $node_info['css_class'],
+        '#description' => t('Separate classes with a space.'),
+        '#maxlength' => 255,
+      );
+
       $form['nodesinblock']['nodesinblock_weight'] = array(
         '#type' => 'value',
         '#value' => $node_info['weight']
@@ -362,6 +371,7 @@ function _nodesinblock_save($node, $op) {
     $nodeinblock->weight = $node->nodesinblock_weight;
     $nodeinblock->visibility = trim($node->nodesinblock_visibility);
     $nodeinblock->render = $node->nodesinblock_render;
+    $nodeinblock->css_class = $node->nodesinblock_css_class;
     drupal_write_record('nodesinblock', $nodeinblock);
   }
 
@@ -398,7 +408,7 @@ function _nodesinblock_show($delta, $visibility) {
 
   $query = db_select('nodesinblock', 'nib');
   $query->join('node', 'n', 'nib.nid = n.nid');
-  $query->fields('nib', array('nid', 'visibility', 'render', 'weight'))
+  $query->fields('nib', array('nid', 'visibility', 'render', 'weight', 'css_class'))
   ->condition('n.status', 1)
     ->condition('delta', $delta)
     ->orderBy('weight', 'ASC')
@@ -433,6 +443,7 @@ function _nodesinblock_show($delta, $visibility) {
         }
 
         $node->nodesinblock = TRUE;
+        $node->nodesinblock_css_class = $row->css_class;
 
         // In case the the render selection has changed, make sure
         // we select the exact render mode.
@@ -442,6 +453,7 @@ function _nodesinblock_show($delta, $visibility) {
 
         // Assemble classes.
         $classes = array('nodesinblock');
+        if (!empty($row->css_class)) $classes[] = $row->css_class;
         if ($i == 0) $classes[] = 'first';
         if ($i == $num_items - 1) $classes[] = 'last';
         if ($i %2 == 0) $classes[] = 'odd'; else $classes[] = 'even';
