Template:Round: Difference between revisions

Template page
(Created page with "border-radius: {{{1|15px}}}; -moz-border-radius: {{{1|15px}}}; -webkit-border-radius: {{{1|15px}}}; -khtml-border-radius: {{{1|15px}}}; -icab-border-radius: {{{1|15px}}}; -o-bord...")
 
mNo edit summary
Line 10: Line 10:
|-
|-
| style="{{roundl}}; border: 4px solid; padding: 5px" | <nowiki>{{</nowiki>'''[[Template:Roundl|Roundl]]'''<nowiki>}}</nowiki>
| style="{{roundl}}; border: 4px solid; padding: 5px" | <nowiki>{{</nowiki>'''[[Template:Roundl|Roundl]]'''<nowiki>}}</nowiki>
| style="{{round}}; border: 4px solid; background-color: #c77; padding: 5px" | <nowiki>{{</nowiki>'''[[Template:Round|Round]]'''<nowiki>}}</nowiki>
| style="{{round}}; border: 4px solid; background-color: #fff; padding: 5px" | <nowiki>{{</nowiki>'''[[Template:Round|Round]]'''<nowiki>}}</nowiki>
| style="{{roundr}}; border: 4px solid; padding: 5px" | <nowiki>{{</nowiki>'''[[Template:Roundr|Roundr]]'''<nowiki>}}</nowiki>
| style="{{roundr}}; border: 4px solid; padding: 5px" | <nowiki>{{</nowiki>'''[[Template:Roundr|Roundr]]'''<nowiki>}}</nowiki>
|-
|-

Revision as of 21:52, 8 May 2011

border-radius: 15px; -moz-border-radius: 15px; -webkit-border-radius: 15px; -khtml-border-radius: 15px; -icab-border-radius: 15px; -o-border-radius: 15px;

This template is used to automatically generate all of the border rounding code. To use it, type {{round|radius}} within a styling. The radius is the radius of the rounded border. If left blank, it will default to 15 pixels. Do not include a px after the number, and remember that the radius is in pixels. Be sure to include a semicolon after it if it is not the last item in the styling.

There are alternate templates that can be used in place of this one. Each has a certain corner or side that it forces round. Be sure that if one is changed, that they are all changed. They are:

{{Roundtl}} {{Roundt}} {{Roundtr}}
{{Roundl}} {{Round}} {{Roundr}}
{{Roundbl}} {{Roundb}} {{Roundbr}}