Make ul.gallery block, not inline-block
authorAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 12 Dec 2010 00:30:06 +0000 (00:30 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 12 Dec 2010 00:30:06 +0000 (00:30 +0000)
As suggested by fomafix at
<https://bugzilla.wikimedia.org/show_bug.cgi?id=3276#c33>.  This makes
it play nicer with floats, at least in Firefox 4, and doesn't seem to
otherwise break stuff (but I haven't tested in many browsers).

skins/common/shared.css

index 3d9f4a5..a4b5b77 100644 (file)
@@ -793,12 +793,6 @@ li.gallerybox {
        border: solid 2px white;
        display: -moz-inline-box;
 }
-ul.gallery {
-       margin: 2px;
-       padding: 2px;
-       background-color: white;
-       display: block;
-}
 
 ul.gallery, li.gallerybox {
        display: inline-block;
@@ -806,6 +800,13 @@ ul.gallery, li.gallerybox {
        *display: inline;
 }
 
+ul.gallery {
+       margin: 2px;
+       padding: 2px;
+       background-color: white;
+       display: block;
+}
+
 li.gallerycaption {
        font-weight: bold;
        text-align: center;