Index: skins/common/shared.css =================================================================== --- skins/common/shared.css (revision 79861) +++ skins/common/shared.css (working copy) @@ -824,7 +824,9 @@ border: 1px solid #ccc; margin: 2px; } - +li.gallerybox div.thumb a.image img{ + vertical-align: text-top; +} div.gallerytext { overflow: hidden; font-size: 94%; Index: includes/ImageGallery.php =================================================================== --- includes/ImageGallery.php (revision 79861) +++ includes/ImageGallery.php (working copy) @@ -286,14 +286,13 @@ $imageParameters['alt'] = $nt->getText(); } - # Set both fixed width and height. Otherwise we might have problems - # with the vertical centering of images where height' + '
' # Auto-margin centering for block-level elements. Needed now that we have video # handlers since they may emit block-level elements as opposed to simple tags. # ref http://css-discuss.incutio.com/?page=CenteringBlockElement - . '
' + . '
' . $thumb->toHtml( $imageParameters ) . '
'; // Call parser transform hook