diff --git a/contrib/image_caption_filter.module b/contrib/image_caption_filter.module
index 766ed2c..e47742c 100644
--- a/contrib/image_caption_filter.module
+++ b/contrib/image_caption_filter.module
@@ -148,7 +148,8 @@ function _image_caption_filter_do_img_titles($img_tag_matches, $active_classes =
             '#type' => 'html_tag',
             '#tag' => 'span',
             '#attributes' => array(
-              'class' => $class
+              'class' => $class,
+              'style' => array('display:block;'),
             ),
             '#value' => render($caption),
           ),
@@ -159,7 +160,7 @@ function _image_caption_filter_do_img_titles($img_tag_matches, $active_classes =
         }
         
         if (!empty($float)) {
-          $element['image_caption']['#attributes']['style'][] = 'float:' . $float;
+          $element['image_caption']['#attributes']['style'][] = 'float:' . $float . ';';
         }
         
         $return_text = render($element);
