Jump to content

Template:Cmbox/sandbox: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Back to margin: -1px both top and bottom, last two tests seriously broke box flow in Opera 9 and IE 5.5, weird.
Removing the ambox classes, since we are anyway overriding them almost totally now.
Line 1: Line 1:
<table class="metadata plainlinks ambox" style="border-collapse:separate; margin: -1px 10%; border: 1px solid #aaa;
<table class="metadata plainlinks" style="margin: -1px 10%; border: 1px solid #aaa; background: #fbfbfb;
{{#switch:{{{type|}}}
{{#switch:{{{type|}}}
| speedy = margin: 1px 10%; border: 4px solid #b22222; background: #FFDBDB;
| speedy = margin: 1px 10%; border: 4px solid #b22222; background: #FFDBDB;
Line 11: Line 11:
}} {{{style|}}}">
}} {{{style|}}}">
<tr>
<tr>
<td class="ambox-image" style="border:none;">
<td style="border:none; padding: 2px 0px 2px 0.5em; text-align: center;">
{{#ifeq:{{{image|}}}|none
{{#ifeq:{{{image|}}}|none
| <!-- No image cell. Empty cell necessary for text cell to have 100% width -->
| <!-- No image cell. Empty cell necessary for text cell to have 100% width -->
Line 26: Line 26:
}}</div>
}}</div>
}}</td>
}}</td>
<td class="ambox-text" style="border:none; {{{textstyle|}}}">{{{text}}}</td>
<td style="border:none; padding: 0.25em 0.5em; width: 100%; {{{textstyle|}}}">{{{text}}}</td>
{{#if:{{{imageright|}}}
{{#if:{{{imageright|}}}
| <td class="ambox-imageright" style="border:none; padding: 2px 0.8em 2px 0px;"> {{{imageright}}} </td>
| <td style="border: none; padding: 2px 0.8em 2px 0px; text-align: center;"> {{{imageright}}} </td>
}}
}}
</tr>
</tr>

Revision as of 20:32, 8 May 2008