Template:Two column: Difference between revisions
Jump to navigation
Jump to search
(if other column has a specified width, default to the remainder, not 50%) |
m (fix?) |
||
Line 1: | Line 1: | ||
<div> | <div> | ||
<br style="clear:both;" /> | <br style="clear:both;" /> | ||
<div style="float:left; | <div style="float:left; {{#if:{{{left column width|}}}|width:{{{left column width}}}|{{#if:{{{right column width|}}}||width:49%}}}};"> | ||
{{{left column}}} | {{{left column}}} | ||
</div> | </div> | ||
<div style="float:right; | <div style="float:right; {{#if:{{{right column width|}}}|width:{{{left column width}}}|{{#if:{{{right column width|}}}||width:49%}}}};"> | ||
{{{right column}}} | {{{right column}}} | ||
</div> | </div> | ||
Line 14: | Line 14: | ||
Copy and paste the following code to use this two-column layout template. | Copy and paste the following code to use this two-column layout template. | ||
<code> | <code>test | ||
{{Two column<br /> | {{Two column<br /> | ||
| left column width =<br /> | | left column width =<br /> |
Revision as of 21:34, 27 September 2011
{{{left column}}}
{{{right column}}}
How to use
Copy and paste the following code to use this two-column layout template.
test
{{Two column
| left column width =
| left column =
YOUR LEFT COLUMN CONTENT HERE
| right column width =
| right column =
left
YOUR RIGHT COLUMN CONTENT HERE
}}
Notes
- left column width and right column width are optional. If neither is specified, it will default to 50-50% column widths. Can be pixels (eg. 200px).