In Internet Explorer 6 and 7, I encountered a nasty bug having to do with the order in which CSS properties are applied via jQuery. Since the display: block rule was applied before the float: right (or float: left), my images were displaying as blocks without any float in IE6/7.
To fix this, I changed the order of the properties in the image_caption.js file.
To prevent this problem, line 12 should be:
$(this).wrap("<span class=\"image-caption-container\" style=\"float: " + alignment + "; display: block;" + style + "\"></span>");
Comments
Comment #1
geerlingguy commentedShall I write a patch?
Comment #2
aliciatheduff commentedChanging line twelve worked for me as well!
Comment #3
mattwmc commentedThank you!
Was trying to figure out what the problem is! Drove me nuts!