javascript and flash development.

roundedc orners

version 2.0

creates rounded corners on divs.

example

This is my content.

features

usage

var box = new RoundedCorners('.roundedContent', {radius: 49});

To allow font resizing, init a new textResizeDetector and pass in the function call on resize:

var detect = new textResizeDetector({onChange: onFontResize});

The resize function should simply call the roundedCorner object's resize function:

function onFontResize() {
	box1.resize();
}

options

radius
the size of the corner.
cls
the class name prefix. (default: 'box')
overlay
are the corners to overlay the content?. (default: false)

browser compatibility

requirements

downloads