border-bottom-left-radius: a length, percentage or calc().border-bottom-right-radius: a length, percentage or calc().
border-top-right-radius: two absolute s or s.border-top-left-radius: two absolute s or s.border-bottom-right-radius: two absolute s or s.border-bottom-left-radius: two absolute s or s.Refer to the corresponding dimension of the border box The behavior on internal table elements is undefined for the moment. In that case, the individual longhand properties have to be used.Īs each of the properties of the shorthand:Īll elements but User Agents are not required to apply to table and inline-table elements when border-collapse is collapse. The border-radius property does not apply to table elements when border-collapse is collapse.Īs with any shorthand property, individual inherited values are not possible, that is border-radius:0 0 inherit inherit, which would override existing definitions partially. This property is a shorthand to set the four properties border-top-left-radius, border-top-right-radius, border-bottom-right-radius and border-bottom-left-radius. The radius applies to the whole background, even if the element has no border the exact position of the clipping is defined by the background-clip property. * (first radius values) / top-left | top-right | bottom-right | bottom-left */īorder-radius: 10px 5% / 20px 25em 30px 35em * (first radius values) / top-left | top-right-and-bottom-left | bottom-right */īorder-radius: 10px 5px 2em / 20px 25px 30%
* (first radius values) / top-left-and-bottom-right | top-right-and-bottom-left */ * The syntax of the second radius allows one to four values */ * top-left | top-right | bottom-right | bottom-left */ * top-left | top-right-and-bottom-left | bottom-right */ * top-left-and-bottom-right | top-right-and-bottom-left */ * The syntax of the first radius allows one to four values */ The curve of each corner is defined using one or two radii, defining its shape: circle or ellipse. The border-radius CSS property allows Web authors to define how rounded border corners are.