-moz-border-radius property | -webkit-border-radius property
-moz-border-radius: | ||||||
-webkit-border-radius: |
Sets the rounding of the corners of the border.
JavaScript page for this property: MozBorderRadius | webkitBorderRadius. You can find other example(s) there. |
Possible values:
One of the following values: | ||||||||||||||
|
Description of values:
Takes the value of this property from the computed style of the parent element. | |||||||
The radius of the border in length units. For the supported length units, see the length page. | |||||||
The radius is the specified percentage of the width of the object. |
Default: 0.
If only one radius value is set, it is used for all four corners. If two radius values are specified, the first value is used for the top-left and bottom-right corners, the second one is for the top-right and bottom-left corners. If three radius values are set, the first value is used for the top-left corner, the second one is for the top-right and bottom-left corners and the third one is for the bottom-left corners. If four radius values are specified, the order is top-left, top-right, bottom-right, bottom-left (clockwise from top-left). |
Example HTML code 1:
This example illustrates the use of the -moz-border-radius and the -webkit-border-radius properties:
|
||||
<head> <style> .example { height: 150px; width: 200px; border: 3px solid red; -moz-border-radius: 40px 30px 20px 10px; -webkit-border-radius: 40px 30px 20px 10px; } </style> </head> <body> <div class="example"> Border with rounded corners </div> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by tags:
a, abbr, acronym, address, applet, b, bdo, big, blink, blockQuote, body, button, caption, center, cite, code, dd, del, dfn, dir, div, dl, dt, em, embed, fieldSet, font, form, H1, H2, H3, H4, H5, H6, hr, html, i, iframe, img, input:button, input:checkbox, input:file, input:image, input:password, input:radio, input:reset, input:submit, input:text, ins, isIndex, kbd, label, legend, li, marquee, menu, object, ol, optGroup, option, p, pre, s, samp, select, small, span, strike, strong, sub, sup, table, tBody, td, textArea, tFoot, th, tHead, tt, u, ul, var, input:range, input:search, q, xmp
Related pages:
-moz-border-bottom-colors
-moz-border-end
-moz-border-end-color
-moz-border-end-style
-moz-border-end-width
-moz-border-left-colors
-moz-border-radius-bottomleft
-moz-border-radius-bottomright
-moz-border-radius-topleft
-moz-border-radius-topright
-moz-border-right-colors
-moz-border-start
-moz-border-start-color
-moz-border-start-style
-moz-border-start-width
-moz-border-top-colors
border
border-bottom
border-bottom-color
border-bottom-style
border-bottom-width
border-color
border-left
border-left-color
border-left-style
border-left-width
border-right
border-right-color
border-right-style
border-right-width
border-style
border-top
border-top-color
border-top-style
border-top-width
border-width
-moz-border-end
-moz-border-end-color
-moz-border-end-style
-moz-border-end-width
-moz-border-left-colors
-moz-border-radius-bottomleft
-moz-border-radius-bottomright
-moz-border-radius-topleft
-moz-border-radius-topright
-moz-border-right-colors
-moz-border-start
-moz-border-start-color
-moz-border-start-style
-moz-border-start-width
-moz-border-top-colors
border
border-bottom
border-bottom-color
border-bottom-style
border-bottom-width
border-color
border-left
border-left-color
border-left-style
border-left-width
border-right
border-right-color
border-right-style
border-right-width
border-style
border-top
border-top-color
border-top-style
border-top-width
border-width
External links:
-moz-border-radius (Mozilla Developer Center)
-webkit-border-radius (Safari Reference Library)
border-radius (W3C)
-webkit-border-radius (Safari Reference Library)
border-radius (W3C)
User Contributed Comments