Nifty Corners are… Nifty!

This has to be one of the raddest hacks I’ve ever seen. Nifty Corners is a super easy to use javascript library that makes rounding the corners of your html elements as simple as adding a few lines of code.

window.onload=function(){
if(!NiftyCheck())
return;
Rounded(“div#nifty”,”all”,”#FFF”,”#D4DDFF”,”smooth”);
}

No more fixed-width rounded sidebars that break when text sizes are increased or images are too large. No more extra markup and bloated css files trying to work around the previous problem either. Oh, and did I mention the hack works without images? Yeah, no images, it’s all done client side with javascript. The best part is the degradation. If somebody has javascript turned off, they just don’t get the nifty rounded corners. Big deal, eh? I can totally see myself abusing this over the next few months.

Here’s some live examples from the article: