XML technologies / CSS / Advanced websites with CSS / CSS property reference / -moz-border-radius-bottomleft, -moz-border-radius-bottomright, -moz-border-radius-topleft, -moz-border-radius-topright

(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)

Mozilla-based browsers (including Netscape 6 and later) support many nonstandard CSS properties. These begin with the prefix -moz. Several of these properties are also mentioned in current recommendations for future CSS standards.

The properties -moz-border-radius-bottomleft, -moz-border-radius-bottomright, -moz-border-radius-topleft and -moz-border-radius-topright describe the rounding radius of an element’s four border corners.

Rounded corners clip only the background, not the box’s content. When using -moz-border-radius, give the element enough padding to prevent overlaps.

Inherited: no

See also: -moz-border-radius

Values

CSS measurements or percentages from 0% to 50% of the element’s width.

Default value: 0

Compatibility

CSS version: is not part of the CSS specification

Works in Mozilla-based browsers, including Netscape 6 and later.

Corresponding functionality is planned for CSS3. However, the final property and value names will probably be different. Current information is available on the CSS Working Group website.

Example

The following style rule creates an unusually shaped rounded border around all elements of the class rundform:

.rundform {
 border: 1px solid red;
 width: 100px;
 height: 100px;
 -moz-border-radius-bottomleft: 25%;
 -moz-border-radius-bottomright: 50%;
 -moz-border-radius-topleft: 50%;
 -moz-border-radius-topright: 25%;
}

  

 

 

 

back to top