Template:Border-radius: Difference between revisions
Jump to navigation
Jump to search
illerai>Habblet 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..." |
m 1 revision imported |
(No difference)
|
Latest revision as of 20:45, 2 November 2024
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>