Template:SmallBox: Difference between revisions

From bradwiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 18: Line 18:
border-radius:{{{border-radius|6px}}};">{{{1}}}
border-radius:{{{border-radius|6px}}};">{{{1}}}
<div style="text-align:{{{txt-align|left}}};  
<div style="text-align:{{{txt-align|left}}};  
padding:{{{pad|4px}}};  
padding:{{{pad|1px}}};  
font-size:{{{txt-size|14px}}};">{{{2|}}}</div></div>
font-size:{{{txt-size|14px}}};">{{{2|}}}</div></div>
<noinclude><br><br><br>
<noinclude><br><br><br>

Latest revision as of 00:21, 8 February 2018

{{{1}}}








This is a small box using default parameters



    {{SmallBox|This is a small box using default parameters}}
    default parameters:
    {{SmallBox|display=block 
    |float=none 
    |clear=both 
    |width=50% 
    |margin=5px auto 
    |padding=5px auto 
    |bg-color=#FFF 
    |font=Arial 
    |font-size=18px 
    |text-align=center 
    |border-style=groove 
    |border-width=2px 
    |border-color=#8c9091 
    |border-radius=6px
    |This is a small box showing all parameters
    }}







NOTICE: THIS TITLE TEXT IS INSIDE ITS OWN DIV CONTAINER
This paragraph text has a separate div container.

This container only has two properties:

  • txt-align
  • txt-size

Which is perfectly sufficient for creating message boxes with a title header.


    {{SmallBox|display=block 
    |float=none 
    |clear=both 
    |width=80% 
    |margin=5px auto 
    |padding=8px
    |bg-color=#efa94c
    |font=Arial 
    |font-size=18px 
    |text-align=center 
    |border-style=groove double inset ridge 
    |border-width=6px 
    |border-color=#4bedca
    |border-radius=6px
    |NOTICE: THIS TITLE TEXT IS INSIDE ITS OWN DIV CONTAINER
    |txt-align=left
    |txt-size=14px
    |This paragraph text has a separate div container. 
    This container only has two properties:
    * txt-align
    * txt-size
    Which is perfectly sufficient for creating message boxes with a title header.
    }}