CSS Library: Horizontal CSS Menus: Here
CF Navigation Menu
Author: Dynamic Drive
This is CSS based navigational menu based on a single tab interface. The name "CF" is taken after our partner site CodingForums.com, which at the time of writing uses a menu based on this code. Four images are used as part of its interface- the two round corners, an indented divider between menu links, and a gradient background image spanning the menu.
In case you're wondering, this CSS menu retains its structure well when the text is resized.
Demo:
The image used:
![]()
The CSS:
Got a question or need help customizing this CSS code? Post it in the CSS Forums. If you have a comment or suggestion instead, post it in the comments section below.
Comment Pages 1 of 4 pages 1 2 3 > Last »
I am new to CSS and my question is: Do I save the images above individually, or do I save them as one image, or am I even allowed to use the images provided above? Kindly advise. :)
Save the images above individually! Be sure there are correctly referenced in your CSS file (put they in a sub-folder called "media). Have fun! ;)
Thank you, Seba. You are a great help!
Replacing
with
will remove the need of placing 'id="leftcorner"' on the first link.
Also, using pseudo last-child will do the same, but for rightcorner on the last link.
e.g.
Cheers!
#cfnavbar ul li a#leftcorner{
float: none;
padding-left: 10px;
padding-right: 0px;
background: url(images/menu_rightcorner.gif) top left no-repeat;
}
with
#cfnavbar ul li:first-child a{
float: none;
padding-left: 10px;
padding-right: 0px;
background: url(images/menu_rightcorner.gif) top left no-repeat;
}
will remove the need of placing 'id="leftcorner"' on the first link.
Also, using pseudo last-child will do the same, but for rightcorner on the last link.
e.g.
#cfnavbar ul li:last-child a{
padding-right: 10px;
background: url(images/menu_rightcorner.gif) top right no-repeat;
}
Cheers!
Nice scripts, moneybagsxp.
NOTE: I was not able to get my above post to work in IE 6 :(
moneybagsxp, thanks for the note. Please let me know if you figure it out.
What does it take to center the menu, I tried various options but didn't seem to get it right. I LOVE THESE MENUS!!!
Hi Michael: Wrap the menu code with <div align="center> and </div>. It works for me.
Commenting is not available in this weblog entry.


There's a little bug in IE and Opera if you have 3 or less links : The UL element doesn't render fine. To correct this just use this:
#cfnavbar ul li{display: inline;
margin: 0; padding: 0;
}
insted of
#cfnavbar ul li{display: inline;
}