While I was coding the Notepad theme, I've learned some new CSS3 features and now I would like to share it with you. View the demo to see a Mac-like multi-level dropdown menu that I've created using border-radius, box-shadow, and text-shadow. It renders perfect on Firefox, Safari and Chrome. The dropdown also works on non-CSS3 compitable browsers such as IE7+, but the rounded corners and shadow will not be rendered.
Preview
The image below shows how the menu will look if CSS3 is not supported.

One Gradient Image is Used
A white-transparent image is used to achieve the gradient effect. Because the new CSS3 gradient feature is not supported by all browsers yet, it is safer to use a gradient background image.

The instensitiy of the gradient can be changed by shifting the background image up or down. Also, the gradient color can be easily adjusted by changing the background color.

CSS Code
I'm not going to explain the CSS line by line. The images below explain the key points on how this dropdown is coded.


Update Apr 13 2010: Pure CSS Dropdown (No Image Used)
The following demo used CSS gradient and IE gradient filter instead of the gradient image. It works for Webkit browsers, Firefox 3.6+, and IE.

Very helpful tutorial.
Thanks for sharing this menu. But where is CSS and HTMl code?
check the source of the demo
Nice, thanks for source :)
Nice tutorial for drop down menu, used on my site. works great.
thanks brother many many thanks
Where is the html and css code ? that image ? need to write, right ? :-) lazy …:-)
Ganesh K. – The lazy one is the one who can’t figure out how to get the css, html and the image!
This code also works perfectly on iOS/Safari making it iPhone/Ipod friendly. Thanks!
Well done… thanks
Thanks for explanation!
thanks for the share css3 dropdown menu
I love the menu… Just curious If you had any tips on how to center the main links in a dynamic width of the #nav ul …. I have tried several combo but am confused how to get this setup centered correctly.
Css3 is just like a revolution in the field of web designing but is a bit hard to learn. Thanks for sharing such a great tutorial , i was trying to make such menu for a long time but i was unable to find the best place where i can learn this. Thanks
mantap bener postinganya bang, ijin nyimak dulu, ahahhahayyy
Really helpful. I was looking for a solution to design pure CSS based navigation menu.
Thanks! I have a problem with the navigation in IE 8.
awesome
you help the blind
nice work
Awesome, thanks for tutorial.
That is CLEAN!
Thank you !!! Very nice work , you save my lots of time..
Fantastic! Thanks.
nice tnanks
Hi,
Very Nice Tutorial I had used this in many of my websites and all your tutorials are great.