Home > CSS > {Gecko engine only} CSS3 imageless rounded corners

{Gecko engine only} CSS3 imageless rounded corners

27 September, 2008 Leave a comment Go to comments

Hey guys check this out: http://virtuelvis.com/archives/2004/11/imageless-rounded-corners

The official syntax is as follows:

border-radius: <length> <length>;

Here is an example:

This is an example.
The code i’m using is -moz-border-radius:10px;

Take note that this module is not supported by any browser, which means your borders will have squared borders even if you have declared the code above. Here’s what they say:

At the time of writing, the border-radius properties are not supported in any browser, since the CSS3 border module is still in “Working Draft” status.

However, browsers based on the Gecko rendering engine (Firefox, Mozilla) has experimental support for the border-radius property, and use the vendor-specific -moz- prefix for the properties, making it -moz-border-radius

Good news for Firefox 3 users!

Here’s the working draft at W3C

Categories: CSS
  1. 3 October, 2008 at 12:21 pm

    Yes, this CSS3 code for rounded corners is brilliant – I’ve tested it & as you say it works perfectly in Firefox but unfortunately not in IE7 which seems to be the browser of choice.

    Anyway thanks for this it will certainly assist with brilliant Web Design »

  2. 29 November, 2008 at 2:01 pm

    I personally love being able to make rounded corners with CSS as opposed to using images or a javascript solution to this (they do work quite nice though..) . I used the border-radius technique to make circles using only CSS.

    Justin Baker.

  1. No trackbacks yet.

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s

%d bloggers like this: