Missing unit 'px' added. W3C CSS validator
authorRaimond Spekking <raymond@users.mediawiki.org>
Fri, 9 Feb 2007 15:48:40 +0000 (15:48 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Fri, 9 Feb 2007 15:48:40 +0000 (15:48 +0000)
whines about it:
"Invalid number : width only 0 can be a length. You
 must put an unit after your number : 150"

includes/ImageGallery.php

index c9eb96a..86bf786 100644 (file)
@@ -212,7 +212,7 @@ class ImageGallery
                                        . htmlspecialchars( $img->getLastError() ) . '</div>';
                        } else {
                                $vpad = floor( ( 1.25*$this->mHeights - $thumb->height ) /2 ) - 2;
-                               $thumbhtml = "\n\t\t\t".'<div class="thumb" style="padding: ' . $vpad . 'px 0; width: '.($this->mWidths+30).';">'
+                               $thumbhtml = "\n\t\t\t".'<div class="thumb" style="padding: ' . $vpad . 'px 0; width: '.($this->mWidths+30).'px;">'
                                        . $sk->makeKnownLinkObj( $nt, $thumb->toHtml() ) . '</div>';
                        }