Member Sign In
Not a member?

A Wired.com user account lets you create, edit and comment on Webmonkey articles. You will also be able to contribute to the Wired How-To Wiki and comment on news stories at Wired.com.


It's fast and free.

Sign in with OpenID
Sign In
Webmonkey is a property of Wired Digital.
processing...
Join Webmonkey

Please send me occasional e-mail updates about new features and special offers from Wired/Webmonkey.
Yes No

Please send occasional e-mail offers from Wired/Webmonkey affiliated web sites and publications, and carefully selected companies.
Yes No

I understand and agree that registration on or use of this site constitutes agreement to Webmonkey's User Agreement and Privacy Policy.
Webmonkey is a property of Wired Digital.
processing...

Retrieve Sign In

Please enter your e-mail address or username below. Your username and password will be sent to the e-mail address you provided us.

or
Webmonkey is a property of Wired Digital.
processing...

Welcome to Webmonkey

A private profile page has been created for you.
As a member of Webmonkey, you can now:
  • edit articles
  • add to the code library
  • design and write a tutorial
  • comment on any Webmonkey article
Close
Webmonkey is a property of Wired Digital.

Sign In Information Sent

An e-mail has been sent to the e-mail address registered in this account.
If you cannot find it in your in-box, please check your bulk or junk folders.
Sign In
Webmonkey is a property of Wired Digital.

Nifty, Curvy, Groovy

Need rounded corners but can’t stand Photoshop? Your choices have grown yet again. First there was Nifty Corners, now there’s curvyCorners. The curvyCorners script was written by Cameron Cooke, and it applies 20-pixel anti-aliased corners to any HTML DIV element. It’s lightweight, easy to implement and it works in all of the major browsers. Cameron hosts the script, documentation, forums, some examples of use and a few other scripted DIV effects on his site — which also shows off some Ajaxy goodness and a tidy design.

Rounded corners can created using a few different methods, but most coders prefer to use either CSS and JavaScript (remember when it was called DHTML?) or small images.

The image route is easy, but you sometimes run into display problems, especially in older versions of IE. The CSS and JavaScript route provides better results, even though a few readers would scoff at anything that uses JavaScript simply for fancy display effects.

But we don’t see anything wrong with dressing up your site with scripts, so we can heartily recommend curvyCorners. Nifty Corners appears to make tighter corners than curvyCorners — Nifty Corners can get the corners down to 5 pixels if you so desire, but curvyCorners seems a little more versatile in other areas, with support for borders and multiple radii values — so try them both and see which one works better with your design.

[link via del.icio.us]

Post Comment Comments Permalink Print
Reddit Digg

 
Subscribe now

Special Offer For Webmonkey Users

WIRED magazine:
The first word on how technology is changing our world.

Subscribe for just $10 a year