This example uses the orignal JavaScript invocation method and will round all 4 corners of the example DIV applying a 20 pixel radius while preserving a 3 pixel white border. The DIV has fluid height and width.
This example uses the orignal JavaScript invocation method and will round all 4 corners of the example DIV applying a 20 pixel radius while preserving the background image. The DIV has fixed height and width.
This example uses the orignal JavaScript invocation method and will round all 4 corners of the example DIV applying a 15 pixel radius while preserving the background image and a 5 pixel black border. The DIV has fixed height and width.
This example is the same as example 1 but uses the new CSS invocation method. The example uses native border-radius support if available in the browser, otherwise uses curvyCorners. Until all the modern browsers support CSS3 syntax, you must enter all three border-radius CSS rules as shown in the example.
This shows a number of examples using the CSS invocation method, including fluid-width rounded tabs and the dynamic redrawing available as from beta 2.0.1.
This example uses the new CSS invocation method and will round all 4 corners of the example DIV applying a 20 pixel radius while preserving left and right 3px white border and top and bottom 3px green border. The DIV has fluid height and width.
Thanks to Simó Albert, curvyCorners can now handle corners of different non-zero radii at top and bottom while preserving an image background. This example gives a comprehensive illustration.