Template:Border-radius

From Illerai

This is an old revision of this page, as edited by illerai>Habblet at 22:21, 21 March 2013 (Created page with "<includeonly>{{#switch:{{{1}}}|top=-moz-border-radius-topleft: {{{2|1em}}}; -moz-border-radius-topright: {{{2|1em}}}; -webkit-border-top-left-radius: {{{2|1em}}}; -webkit-bord..."). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation
This documentation is transcluded from Template:Border-radius/doc. [edit] [history] [purge]

This template inserts CSS to create rounded corners in an element. It should be used over manually specifying the border-radius property due to browser compability.[confirmation needed]

Usage

This template can be used by placing it into an HTML element's "style" attribute. It takes a parameter for how large the radius should be: a number, followed by any valid CSS unit, most commonly em or px.

<span class="{{Border-radius|1em}}">Contents</span>