Template:Infobox country/imagetable: Difference between revisions

used table-cell instead of inline-block to prevent issues when the symbol is a similar width to the flag.
(update from sandbox per discussion on talk page)
(used table-cell instead of inline-block to prevent issues when the symbol is a similar width to the flag.)
Line 1:
{{#if:{{both|{{{image1a|}}}{{{image1b|}}}|{{{image2|}}}}}
|<div style="display:inline-block;vertical-align:middletable; width:58100%;text><div style="display:table-align:centerrow;">
<div style="display:table-cell;vertical-align:middle;width:58%;text-align:center;">
<div class=center>{{{image1a|}}}</div><div class=center>{{{image1b|}}}</div>
<div style="font-size:85%; text-align:center; margin-top:2px;">{{{caption1|}}}</div>
</div><!--
--><div style="display:inlinetable-blockcell;vertical-align:middle;width:40%auto;text-align:center;">
<div class=center>{{{image2|}}}</div>
<div style="font-size:85%; text-align:center; margin-top:2px;">{{{caption2|}}}</div>
</div></div></div>
|{{#if:{{{image1a|}}}{{{image1b|}}}|{{{image1a|}}}{{{image1b|}}}<div class=center style="font-size:85%; text-align:center; margin-top:2px;">{{{caption1}}}</div>
}}{{#if:{{{image2|}}}|{{{image2|}}}<div class=center style="font-size:85%; text-align:center; margin-top:2px;">{{{caption2}}}</div>
Anonymous user