`<figure>` and `<figcaption>` are better in terms of semantics, but
heavily limit the abiliy to nest them into other elements, as they're
block-elements themselves.
This is especially the case when used as inline images, because browsers
will pop them out of the flow.
-<figure class="mediaBBCode{if $float != 'none'} messageFloatObject{$float|ucfirst}{/if}">
+<span class="mediaBBCode{if $float != 'none'} messageFloatObject{$float|ucfirst}{/if}">
{if $thumbnailSize != 'original'}
<a href="{$media->getLink()}" class="embeddedAttachmentLink jsImageViewer"><img src="{$media->getThumbnailLink($thumbnailSize)}" alt="{$media->altText}" title="{$media->title}"></a>
{else}
{/if}
{if $media->caption}
- <figcaption>{$media->caption}</figcaption>
+ <span class="mediaBBCodeCaption">{$media->caption}</span>
{/if}
-</figure>
+</span>
.mediaBBCode {
display: inline-block;
- figcaption {
+ .mediaBBCodeCaption {
color: $wcfContentDimmedText;
+ display: block;
margin-top: 5px;
text-align: center;