Jump to content

Template:Box: Difference between revisions

From Sugar Labs
No edit summary
m update category
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="border:1px solid #ccc; padding:6px 12px; color:#333; background-color:{{{bgcolor|}}}; margin:1px; font-size:100%; margin-left:{{{margin|30px}}}; margin-right:{{{margin|30px}}}; text-indent:{{{indent|}}}">  
<div style="border:1px solid #ccc; padding:6px 12px; color:#333; background-color:{{{bgcolor|}}}; margin:1px; font-size:100%; margin-left:{{{margin|30px}}}; margin-right:{{{margin|30px}}}; text-indent:{{{indent|}}}">  
{{{1}}}
{{{1}}}
</div><noinclude>
</div><noinclude>[[Category:Highlighting template|Box]]


== Usage ==
== Usage ==
Line 11: Line 11:


'''Example'''
'''Example'''
  <nowiki>{{Quote|margin=60px|indent=10px|bgcolor:lightyellow|This text will be highlighted in a box.}}</nowiki>
  <nowiki>{{Box|margin=120px|indent=12px|bgcolor=lightyellow|This text will be highlighted in a box.}}</nowiki>


{{Quote|margin=120px|indent=|bgcolor:lightyellow|This text will be highlighted in a box.}}
{{Box|margin=120px|indent=12px|bgcolor=lightyellow|This text will be highlighted in a box.}}

Latest revision as of 14:58, 16 July 2011

{{{1}}}

Usage

Options

  • margin - default: 30px (left and right)
  • indent - default: none
  • background-color - default: none

Example

{{Box|margin=120px|indent=12px|bgcolor=lightyellow|This text will be highlighted in a box.}}

This text will be highlighted in a box.