Name: | border-top-right-radius, border-bottom-right-radius, border-bottom-left-radius, border-top-left-radius, border-radius |
Value: | <length> <length>? |
Initial: | 0 |
Applies to: | all elements, except table element when 'border-collapse' is 'collapse' |
Inherited: | no |
Percentages: | N/A |
Media: | visual |
Computed value: | specified values |
The two length values of the 'border-radius' properties define the radii of a quarter ellipse that defines the shape of the corner (see the diagram below). The first value is the horizontal radius (or vertical if the 'writing-mode' is vertical). If the second length is omitted it is equal to the first (and the corner is thus a quarter circle). If either length is zero, the corner is square, not rounded. The border radius also causes the element's background to be rounded, even if the border is 'none'. Negative values are not allowed.
The two values of 'border-top-left-radius' define the curvature of the corner.
All border styles ('solid', 'dotted', 'inset', etc.) follow the curve of the border. Border images specified with 'border-image', however, are clipped at the outer edge of the curve. Or are they not affected at all?
========================================