Template:Round: Difference between revisions
Jump to navigation
Jump to search
Greenpickle (talk | contribs) (categorisation, conciseness. Removed last sentence 'cause it's untrue. border-radius should be last so any browsers supporting it and another use the standard (spec may change?)) |
Greenpickle (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{#if:{{{full|}}} | |||
|-moz-border-radius: {{{1|15}}}px; -webkit-border-radius: {{{1|15}}}px; khtml-border-radius: {{{1|15}}}px; -icab-border-radius: {{{1|15}}}px; border-radius: {{{1|15}}}px; | |||
|-moz-border-radius: {{{1|15}}}px 0; -webkit-border-radius: {{{1|15}}}px 0; khtml-border-radius: {{{1|15}}}px 0; -icab-border-radius: {{{1|15}}}px 0; border-radius: {{{1|15}}}px 0;}}<noinclude> | |||
==Use== | ==Use== | ||
<nowiki>{{round|radius|full = ...}}</nowiki> | |||
This template generates border rounding code. Use it in the 'style' property of an element. Radius is the radius of the rounded border in pixels (defaults to 15): do not include 'px' after the number. Pass any value for the 'full' argument to curve every corner - otherwise, only top-left and bottom-right are curved. | |||
[[Category:Templates|{{PAGENAME}}]] | [[Category:Templates|{{PAGENAME}}]] |
Revision as of 04:11, September 22, 2010
-moz-border-radius: 15px 0; -webkit-border-radius: 15px 0; khtml-border-radius: 15px 0; -icab-border-radius: 15px 0; border-radius: 15px 0;
Use
{{round|radius|full = ...}}
This template generates border rounding code. Use it in the 'style' property of an element. Radius is the radius of the rounded border in pixels (defaults to 15): do not include 'px' after the number. Pass any value for the 'full' argument to curve every corner - otherwise, only top-left and bottom-right are curved.