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).
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;
*display: inline;
}
+ul.gallery {
+ margin: 2px;
+ padding: 2px;
+ background-color: white;
+ display: block;
+}
+
li.gallerycaption {
font-weight: bold;
text-align: center;