Index: image_caption.js
===================================================================
--- image_caption.js	(revision 1119)
+++ image_caption.js	(working copy)
@@ -8,8 +8,9 @@
     var alignment = $(this).attr('align');
     //Clear image styles to prevent conflicts with parent div
     $(this).attr('style','');
-    $(this).wrap("<div class=\"image-caption-container\" style=\"" + style + "; text-align: " + alignment + "\"></div>");
+    $(this).wrap("<div class=\"image-caption-container\" style=\"" + style + "; float: " + alignment + "\"></div>");
+    $(this).parent().addClass('image-caption-container-' + alignment);
     $(this).parent().width(imgwidth);
     $(this).parent().append("<div class=\"image-caption\">" + captiontext + "</div>");
   });
-});
\ No newline at end of file
+});
