Rounded Corners | JavaScriptSource

Rounded Corners

Cameron Cooke Mar 31, 2009

This script will generate rounded corners with any <div> element. All the corners are anti-aliased, and support borders of any width and color. The script also degrades nicely leaving tidy square corners. No images or CSS required.

Leave a Response

(2 comments)

i look forward to using this code in many websites , thanks

ryan Sep 27, 2012

I am a novice with scripts and I have a question regarding this sentence. "The script also degrades nicely leaving tidy square corners." Why and when does the script degrade? Will the corners not stay rounded? Sincerely Carroll

Carroll Cameron Sep 3, 2012