Template:Two column: Difference between revisions
Jump to navigation
Jump to search
(→How to use: spacing, category) |
m (→How to use: cleanup) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<div> | <div> | ||
<div style="float:left; width: | <br style="clear:both;" /> | ||
<div style="float:left; {{#if:{{{left column width|}}}|width:{{{left column width}}}|}};"><div style="padding-right:10px;"> | |||
{{{left column}}} | {{{left column}}} | ||
</div> | </div></div> | ||
<div style="float:right; width: | <div style="float:right; {{#if:{{{right column width|}}}|width:{{{left column width}}}|}};"><div style="padding-left:10px;"> | ||
{{{right column}}} | {{{right column}}} | ||
</div> | </div></div> | ||
<br style="clear:both;" /> | <br style="clear:both;" /> | ||
</div> | </div> | ||
Line 15: | Line 16: | ||
<code> | <code> | ||
{{Two column<br /> | {{Two column<br /> | ||
| left column width =<br /> | |||
| left column =<br /> | | left column =<br /> | ||
<br /> | <br /> | ||
YOUR LEFT COLUMN CONTENT HERE<br /> | YOUR LEFT COLUMN CONTENT HERE<br /> | ||
<br /> | <br /> | ||
| right column width =<br /> | |||
| right column =<br /> | | right column =<br /> | ||
<br /> | <br /> | ||
Line 25: | Line 28: | ||
}} | }} | ||
</code> | </code> | ||
=== Notes === | |||
* '''left column width''' and '''right column width''' are optional. If neither is specified, the columns will adjust to their content. This value can be in percent (eg. 50%), pixels (eg. 200px), or any other CSS-compliant length. | |||
[[Category:Layout templates]] | [[Category:Layout templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 21:55, 27 September 2011
{{{left column}}}
{{{right column}}}
How to use
Copy and paste the following code to use this two-column layout template.
{{Two column
| left column width =
| left column =
YOUR LEFT COLUMN CONTENT HERE
| right column width =
| right column =
YOUR RIGHT COLUMN CONTENT HERE
}}
Notes
- left column width and right column width are optional. If neither is specified, the columns will adjust to their content. This value can be in percent (eg. 50%), pixels (eg. 200px), or any other CSS-compliant length.