Yes, it's a nice solution, and another good example of using JavaScript more transparently to enhance a site.
But this flaming topic on rounded corners just won't be settled until all major browsers (yes, I'm aiming at IE mostly) supports the CSS :before and :after selectors. They give a lot more freedom on creating rounded corners, and when IE supports PNG with alpha channels natively, you could create whatever you want and call it a corner 🙂
The "Nifty Corners" uses no extra HTML in your document, and no extra CSS - but it uses quite a bit of JavaScript "just" for a rounded corner effect... And if I let myself be picky for a moment, I'd more prefer CSS to handle the visual part and let JavaScript do some "nifty" behavioral thingy.
By the time a perfect rounded-corners solution is found, the trend will have passed. Like drop-shadows are passing, for instance.
To be honest the drop-shadow fad should have never happened, but we're all guilty. Even the new OS X is drastically softening the shadows. It's sad when a web fashion from just over a year ago already looks extremely dated already.
Posted 21 Mar 2005 at 4:03am #
Fantastic! About time too... Thanks for posting it!
Posted 21 Mar 2005 at 7:15am #
Yes, it's a nice solution, and another good example of using JavaScript more transparently to enhance a site.
But this flaming topic on rounded corners just won't be settled until all major browsers (yes, I'm aiming at IE mostly) supports the CSS :before and :after selectors. They give a lot more freedom on creating rounded corners, and when IE supports PNG with alpha channels natively, you could create whatever you want and call it a corner 🙂
The "Nifty Corners" uses no extra HTML in your document, and no extra CSS - but it uses quite a bit of JavaScript "just" for a rounded corner effect... And if I let myself be picky for a moment, I'd more prefer CSS to handle the visual part and let JavaScript do some "nifty" behavioral thingy.
Posted 22 Mar 2005 at 12:39am #
By the time a perfect rounded-corners solution is found, the trend will have passed. Like drop-shadows are passing, for instance.
To be honest the drop-shadow fad should have never happened, but we're all guilty. Even the new OS X is drastically softening the shadows. It's sad when a web fashion from just over a year ago already looks extremely dated already.
Posted 22 Mar 2005 at 12:46pm #
CSS should have supported that without a hack since the very beginning...
Posted 22 Mar 2005 at 12:51pm #
Even then it would probably look different (or crappy) on certain browsers, and everyone would still use hacks or images to get what they wanted.