Template:Border-radius/doc

From Old School RuneScape Wiki
Jump to: navigation, search
Information icon-grey.svg
This is a documentation subpage for Template:Border-radius.
It contains usage information, categories, and other content that is not part of the original template page.

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>