spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com


Technical Lead
Thomson Reuters (Markets) LLC
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume
Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?


Logo

Fun with Mozilla Border Radii
-moz-border-radius



The Mozilla border radius properties differ significantly from those outlined in the CSS3 proposal:

1. There is no way to specify different values for horizontal and vertical radii.

2. The base property, -moz-border-radius, accepts up to four values.

3. The corner-specific properties accept only a single value.

4. Besides length units, all properties accept the "inherit" value. This is a standard CSS property value that reflects the value set for the property in a parent, containing element.


The table below illustrates the results to expect when using -moz-border-radius:


-moz-border-radius:<length value>;
If one value is specified, then all four corners are affected.
The horizontal radius and the vertical radius will be identical.
MOZ One Value Rendering
Mozilla CSS Syntax: -moz-border-radius:55px;
Mozilla JS Syntax: element.style.MozBorderRadius="55px";

-moz-border-radius:<length value> <length value>;
If two values are specified, the first one affects the top-left and bottom-right corners.
The second affects the top-right and bottom-left corners.
MOZ One Value Rendering
Mozilla CSS Syntax: -moz-border-radius:55px 19px;
Mozilla JS Syntax: element.style.MozBorderRadius="55px 19px";

-moz-border-radius:<length value> <length value> <length value>;
If three values are specified, the first one affects the top-left corner.
The second affects the top-right and bottom-left corners.
The third affects the bottom-right corner.
MOZ One Value Rendering
Mozilla CSS Syntax: -moz-border-radius:55px 19px 40px;
Mozilla JS Syntax: element.style.MozBorderRadius="55px 19px 40px";

-moz-border-radius:<length value> <length value> <length value> <length value>;
If four values are specified, the first one affects the top-left corner.
The second affects the top-right corner.
The third affects the bottom-right corner.
The fourth affects the bottom-left corner.
MOZ One Value Rendering
Mozilla CSS Syntax: -moz-border-radius:55px 19px 40px 30px;
Mozilla JS Syntax: element.style.MozBorderRadius="55px 19px 40px 30px";

The corner-specific properties are not as complicated.



Send a comment or suggestion to Peter Belesis

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business

Created: September 27, 2004
Revised: September 27, 2004

URL: http://webreference.com/dhtml/column70/3.html