Template:Pad

From AHPA Botanical Identity References Compendium
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
<span style="padding-left: {{{1|1em}}};">&nbsp;</span><noinclude>
 
<span style="padding-left: {{{1|1em}}};">&nbsp;</span><noinclude>
Use <pre>{{Pad}}</pre> to insert a horizontally padding HTML span inline. The template takes one unnamed parameter; a width value specified in px, em or ex (other CSS units – in, cm, pc, pt – are supported as well, but not recommended, typically at 96dpi conversion ratio). The default is 1 em.
 
  
The result is the specified padding followed by an &nbsp; (non-breaking space – at 100% font size (8pt), typically 3px wide in narrow fonts like Arial and Tahoma, 4px in wider fonts like Arial Black and Verdana).
+
==Usage==
 +
Use {{tl|Pad}} to insert a horizontally padding HTML {{tag|span|open}} inline. The template takes one unnamed parameter; a width value specified in <tt>[[Pixel|px]]</tt>, <tt>[[Em (typography)|em]]</tt> or <tt>[[x-height|ex]]</tt> (other CSS units&nbsp;– in, cm, pc, pt&nbsp;– are supported as well, but not recommended, typically at 96dpi conversion ratio). The default is <tt>1 em</tt>.
 +
 
 +
'''The result is the specified padding followed by an &amp;nbsp;''' ([[non-breaking space]]&nbsp;– at 100% font size (8pt), typically 3px wide in narrow fonts like Arial and Tahoma, 4px in wider fonts like Arial Black and Verdana).
 +
 
 +
 
  
 
Loaded from Wikipedia http://en.wikipedia.org/wiki/Template:Pad source 2/25/2014
 
Loaded from Wikipedia http://en.wikipedia.org/wiki/Template:Pad source 2/25/2014
 
</noinclude>
 
</noinclude>

Revision as of 20:16, 25 February 2014

 

Usage

Use Template:Tl to insert a horizontally padding HTML Template:Tag inline. The template takes one unnamed parameter; a width value specified in px, em or ex (other CSS units – in, cm, pc, pt – are supported as well, but not recommended, typically at 96dpi conversion ratio). The default is 1 em.

The result is the specified padding followed by an &nbsp; (non-breaking space – at 100% font size (8pt), typically 3px wide in narrow fonts like Arial and Tahoma, 4px in wider fonts like Arial Black and Verdana).


Loaded from Wikipedia http://en.wikipedia.org/wiki/Template:Pad source 2/25/2014

Personal tools
MediaWiki Appliance - Powered by TurnKey Linux