Template:BoxWidthIndent
From Avisynth wiki
(Difference between revisions)
Raffriff42 (Talk | contribs) m (typo) |
Raffriff42 (Talk | contribs) m (add instruction) |
||
| Line 11: | Line 11: | ||
</div> | </div> | ||
:where '''<tt>''W''</tt>''' = width and '''<tt>''I''</tt>''' = indentation, in character-width (CSS ''em'') units. | :where '''<tt>''W''</tt>''' = width and '''<tt>''I''</tt>''' = indentation, in character-width (CSS ''em'') units. | ||
| + | :(decimal values like 1.25 are allowed, but trailing spaces eg, <code>|1 |1.2 }}</code> will create invalid CSS) | ||
*The preview above can be created with <code><div <nowiki>{{</nowiki>BoxWidthIndent|24|2}}></code> | *The preview above can be created with <code><div <nowiki>{{</nowiki>BoxWidthIndent|24|2}}></code> | ||
Revision as of 01:51, 4 January 2016
style="width:80em;margin:0 0 0 0em;padding:0;border:none;"
- purpose;
- create a smaller, neater, optionally indented, code (PRE) block; may also be useful for other box elements
usage and preview:
<div {{BoxWidthIndent|W|I}} >
...your code sample goes here...
</div>
- where W = width and I = indentation, in character-width (CSS em) units.
- (decimal values like 1.25 are allowed, but trailing spaces eg,
|1 |1.2 }}will create invalid CSS)
- The preview above can be created with
<div {{BoxWidthIndent|24|2}}>
--Raffriff42 01:10, 4 January 2016 (CET)