i am dustin diaz

a JavaScriptr...

boosh.

don't worry about it.

Enough with the Rounded Corners!

As if they were ever that hard to do in the beginning with tables (you remember back in the day ;)), we are now experiencing the new "Got Religion" era where everyone is figuring out the new way to do all this stuff with nested div elements, some with images, some without, some with JavaScript, some without, some with domain names, others as an extension of your main site. What is the big fuss about all this rounded corner hoopla? Near just a few weeks ago I referenced Scott Schillers approach to rounded corners which i think pretty much solves what people wanted. Yes, it uses images, and there's no way you can make them better looking than that. When it comes to custom edges, cheesy gradients, and wicked drop shadows, an image will always take home the cake. Schillers solution not only looks nice when it's in its regular state, but it can be molded (ala sliding doors) to fit any size height and pretty much any width you want with fairly minimal markup.

So here's the deal

If you want rounded corners: and you're concerned about your markup, use JavaScript. If you're concerned about a user not having JavaScript enabled and still want your site to look pretty, then come up with a rounded image solution that won't scale. If you want scaling, then you're totally screwed. Got it? Have fun with your options.

this is who i am

Hi, my name is Dustin Diaz and I'm an Engineer @ObviousCorp. Previously @Twitter, @Google, and @Yahoo, author of Strobist® Info co-author of JavaScript Design Patterns, co-creator of the Ender JavaScript Framework, a Photographer, and an amateur Mixologist. This is my website. Welcome!

On this site I write about JavaScript. You can also follow along with my open-source work on Github.

This site is optimized and works best in Microsoft Internet Explorer 6.