Template:Pad

From AHPA Botanical Identity References Compendium
(Difference between revisions)
Jump to: navigation, search
 
(One intermediate revision by one user not shown)
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 Pad to insert a horizontally padding HTML SPAN 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>

Latest revision as of 20:16, 25 February 2014

 

[edit] Usage

Use Pad 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).


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

Personal tools
MediaWiki Appliance - Powered by TurnKey Linux