Skip to content

Instantly share code, notes, and snippets.

@StevenBlack
Created April 9, 2010 22:24
Show Gist options
  • Save StevenBlack/361654 to your computer and use it in GitHub Desktop.
Save StevenBlack/361654 to your computer and use it in GitHub Desktop.
Round corners plugin
/*
Rounded-corners plugin.
Origin: http://css-tricks.com/jquery-css-abstraction/
Usage:
$(function() {
$("p").roundCorner('50px');
});
*/
$.fn.roundCorner = function(radius) {
return this.each(function(e) {
$(this).css({
"border-radius": radius,
"-moz-border-radius": radius,
"-webkit-border-radius": radius
});
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment