Suckerfish Rounded Corners
Tuesday, March 4th, 2008While using the Sons of Suckerfish dropdown menu on a website recently, the need for a drop-down menu with rounded corners came up. No information came up Googling this, but the following simple solution worked, so I thought I would post it to share with others looking for an answer.
- Create an image file that has rounded corners on the bottom left and right corners, and is long enough to contain your longest dropdown list. Here is an example that you are welcome to use:
- Modify your CSS for the second level list (e.g. #nav li ul if using the same naming scheme as in this Sons of Suckerfish article):
#nav li ul { position: absolute; width: 140px; /* Set a fixed width */ left: -999em; background: url("/img/roundcorners.gif") bottom left no-repeat; /* Select your image file. */ }
You sacrifice a fluid menu layout, but the rounded corners on a drop down produces a pleasant effect. See Avatar Languages for a live example.
Hopefully, this is useful for someone. Please let me know if you have used this successfully or have found another method!




March 13th, 2008 at 10:38 pm
Really helpful! Thanks for taking the time to put this up.
August 4th, 2009 at 9:53 pm
thank you sooooo much for this technique…
your a bloody lifesaver …. a lifesaver I tells you!!! :)
September 3rd, 2009 at 9:43 pm
hi there, how do i go bout shifting the sucker fish rounded menu image more to the left?
January 22nd, 2010 at 7:47 am
hi there, need your help…..
Can any one please provide me this type of Suckerfish menu, http://www.ppm.net/