Difference between revisions of "Template:Inline-block"

From Krafties
Jump to navigation Jump to search
m
m
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude><div style="display:inline-block;padding:{{{padding|0 5 0 5}}};text-align:{{{align|center}}};border:{{{border|1px solid #000}}};">{{{1}}}</div></onlyinclude>
+
<onlyinclude><div style="display:inline-block;text-align:{{{align|center}}};{{{style|}}}">{{{1}}}</div></onlyinclude>
{{Template Explanation|[[Category:Templates]]
+
{|{{Template Explanation}}[[Category:Templates]]
This is a DIV that will appear inline with other text. I made this specially for arranging images with captions.
+
This is a DIV that will appear inline with other text. Useful to arrange items inline, such as images or tables
*<nowiki>{{inline-block|your content}}</nowiki>
+
===<nowiki>{{inline-block|your content}}</nowiki>===
 
*'''Optional:'''  
 
*'''Optional:'''  
**<code>padding</code>
+
*<code>align=</code> text alignment
**<code>align</code>
+
*<code>style=</code> add some extra styling
**<code>border</code>
 
 
==See Also==
 
==See Also==
 
{{Useful Templates}}
 
{{Useful Templates}}
}}
+
|}

Latest revision as of 13:57, 30 March 2015

{{{1}}}
Documentation icon Template documentation ( view · talk · edit)

Template:Inline-block/doc

The above documentation is transcluded from Template:Inline-block/doc.
Editors can experiment in this template's sandbox
Please add categories to the /doc subpage within <includeonly>...</includeonly>

This is a DIV that will appear inline with other text. Useful to arrange items inline, such as images or tables

{{inline-block|your content}}[edit]

  • Optional:
  • align= text alignment
  • style= add some extra styling

See Also[edit]