Template:Round: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
(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?))
No edit summary
Line 1: Line 1:
-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;<noinclude>
{{#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==
This template generates border rounding code. To use it, type <nowiki>{{round|radius}}</nowiki> in the 'style' property of an element, where radius is the radius of the rounded border in pixels (defaults to 15). Do not include 'px' after the number.
<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.