` in HTML4. Here is an
[example from the W3C](https://www.w3.org/Style/Examples/007/figures.en.html#Illustrati) or [bootstrap](https://getbootstrap.com/docs/3.3/components/#thumbnails-custom-content). The former suggests
something like this:
The CSS, in that case, would be simply:
div.figure {
text-align: center;
font-size: smaller;
}
The double-`
` is what allows pushing the caption upwards with CSS
in their later example, with this CSS:
div.figure {
display: table;
}
div.figure p + p {
display: table-caption;
caption-side: top;
}
The `
` mechanism seems much simpler than the current table-based
markup. I'd be happy to provide patches to do the above if there's
interest. Considering that most of my images are hosted outside of
ikiwiki, I cannot use of the `img` directive in the first place so I
don't need to patch `img.pm` and don't want to carry yet another
delta... But I could sure use upstreaming the CSS fixes. ;)
Thanks! -- [[anarcat]]