CSS3 Table Border Rounding in Older Versions of the Major Browsers

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. 1 value = the radius for all four corners
  2. 2 values
    • #1 radius = top-left and bottom-right corner
    • #2 radius = top-right and bottom-left corner
  3. 3 values
    • #1 radius = top-left
    • #2 radius = top-right and bottom-left corner
    • #3 radius = bottom-right
  4. 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.

References:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s