Follow Along as I Stumble on the Path to Learning RoR

Rounded Image Corners

I wondered how Twitter made all of the uploaded images have rounded corners. I found a wonderful jQuery script, jQuery corners which does just this:

http://jquery.malsup.com/corner/

apply an id to your picture, like so

:id=>”rounded_corners”

then add this script:

$(‘#rounded_corners’).corner();

Advertisements

Comments are closed.