Introduction:
In the past while I have been playing with CSS3 markup to round my HTML table borders.
The latest versions of the major browsers now support CSS3 table border rounding using standardized CSS3 property tags. This means that IE9+, Firefox8+, Chrome5+, Opera10.5+, Safari5+ all support the border-radius: Npx property style.
However older versions of the major browsers each used somewhat different CSS to support rounding of table borders. Here is a result of my investigations.
Overview:
Below is a table of the CSS properties that earlier versions of the major browsers required to support HTML table border rounding.
Chrome | CSS3(IE9) | Firefox | Konquerer |
---|---|---|---|
-webkit-border-radius: Npx | border-radius: Npx | -moz-border-radius: Npx | -khtml-border-radius: Npx |
-webkit-border-top-Left-radius: Npx | border-top-Left-radius: Npx | -moz-border-radius-topLeft: Npx | -khtml-border-top-left-radius |
-webkit-border-top-right-radius: Npx | border-top-right-radius: Npx | -moz-border-radius-topright: Npx | -khtml-border-top-right-radius |
-webkit-border-bottom-Left-radius: Npx | border-bottom-Left-radius: Npx | -moz-border-radius-bottomLeft: Npx | -khtml-border-bottom-Left-radius: Npx |
-webkit-border-bottom-Right-radius: Npx | border-bottom-Right-radius: Npx | -moz-border-radius-bottomRight: Npx | -khtml-border-bottom-right-radius: Npx |
Details on the CSS3 Rounding Property:
It is worth noting that in its current specifications, CSS3 border rounding supports 1-4 radius values for the border-radius property. Specifically:
- 1 value = the radius for all four corners
- 2 values
- #1 radius = top-left and bottom-right corner
- #2 radius = top-right and bottom-left corner
- 3 values
- #1 radius = top-left
- #2 radius = top-right and bottom-left corner
- #3 radius = bottom-right
- 4 values
- #1 radius = top-left
- #2 radius = top-right
- #3 radius = bottom-right
- #3 radius = bottom-left
Also of note is that one can use a / character to address the top and bottom radii.