Template:Div: Difference between revisions

Want an adless experience? Log in or Create an account.
No change in size ,  April 12, 2013
m
no edit summary
mNo edit summary
mNo edit summary
 
Line 4: Line 4:


==Usage==
==Usage==
::<i><small>Used in conjunction with [[Template:/div|/div]].</small></i>
::<i><small>Used in conjunction with [[Template:!div|!div]].</small></i>
To use this template, use it as you would a normal div tag:
To use this template, use it as you would a normal div tag:
{{Float|left}}<pre>
{{Float|left}}<pre>
{{div}}{{/div}}</pre>
{{div}}{{!div}}</pre>
{{Float|end}}
{{Float|end}}
{{clear}}
{{clear}}
For a div tag with style parameters, use it like this:
For a div tag with style parameters, use it like this:
{{Float|left}}<pre>
{{Float|left}}<pre>
{{div|style=[enter style parameters here as you normally would within a div tag's quotations]}}{{/div}}</pre>
{{div|style=[enter style parameters here as you normally would within a div tag's quotations]}}{{!div}}</pre>
{{Float|end}}
{{Float|end}}
{{clear}}
{{clear}}
If you need to add a class, use:
If you need to add a class, use:
{{Float|left}}<pre>
{{Float|left}}<pre>
{{div|class=[class name here]}}{{/div}}</pre>
{{div|class=[class name here]}}{{!div}}</pre>
{{Float|end}}
{{Float|end}}
{{clear}}
{{clear}}
and
and
{{Float|left}}<pre>
{{Float|left}}<pre>
{{div|class=[class name here]|style=[enter style parameters here as you normally would within a div tag's quotations]}}{{/div}}</pre>
{{div|class=[class name here]|style=[enter style parameters here as you normally would within a div tag's quotations]}}{{!div}}</pre>
{{Float|end}}
{{Float|end}}
{{clear}}
{{clear}}
{{Cat|Workaround Templates}}
{{Cat|Workaround Templates}}
</noinclude>
</noinclude>