Template:Ambox

From FamilySearch Wiki

(Difference between revisions)
(move vertical-align:middle;)
m (move vertical-align:middle;)
Line 13: Line 13:
 
{{#ifeq:{{{image|}}}|none
 
{{#ifeq:{{{image|}}}|none
 
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 1px;"></td>
 
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 1px;"></td>
| <td class="ambox-image"><div style="width: 52px; vertical-align:middle;">
+
| <td class="ambox-image"><div style="width: 52px;">
 
   {{#ifeq:{{{image|}}}|blank
 
   {{#ifeq:{{{image|}}}|blank
 
   | &nbsp;
 
   | &nbsp;
Line 31: Line 31:
 
   }}</div></td>
 
   }}</div></td>
 
}}
 
}}
<td class="ambox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
+
<td class="ambox-text" style="{{{textstyle|}}}; vertical-align:middle;"> {{{text}}} </td>
 
{{#if:{{{imageright|}}}
 
{{#if:{{{imageright|}}}
 
| <td class="ambox-imageright"><div style="width: 52px;"> {{{imageright}}} </div></td>
 
| <td class="ambox-imageright"><div style="width: 52px;"> {{{imageright}}} </div></td>

Revision as of 08:34, 9 December 2010