Advanced Search Usage Terms Submit Contact
Dynamic Drive CSS Library
 
CSS Library
Submit an original CSS code
CSS Layouts
Web Graphics
Online Tools:

Advertise Here

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:

The HTML:

Code Info

Rate this code:

Date Posted: 05/07/2006

Revision History: None

Usage Terms: Click here

Your Comments (39)

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 4 of 4 pages « First  <  2 3 4

Hi Seba. I like this, but I can't center with Your tricks (see Michael Shiels). Any suggestion?
The code is like in Your example and without any other
VERY GOOD works!
Bye
Posted by Luigi on 10/31, 04:47 AM
I like this menu, but what if i wanted the background color to change on rollover? How would i deal with the first and last tab that have the rounded corner?
Posted by Chris on 01/04, 11:18 PM
What is the easiest way to replace the 4 image files with one with different color? Thanks.
Posted by Lak Lam on 02/20, 12:47 PM
Apparently a lot of people are having aproblem with centering the ENTIRE menu, not just the text. Div centering doesn't work. html centers don't work.

I personally am ripping m y hair out. Can someone shed a little light, help us out!
Posted by Derek on 03/19, 05:31 PM
I use this Navi in another div.
How can I make it that the Navi has the same width like the div, which has the navi as a contens?
Thanks
Posted by steffen on 03/25, 03:07 AM
<style type="text/css">
<!--
body{
font: 76%/1.8 "Lucida Grande",Verdana, Arial, Helvetica, sans-serif;
background: #fff;
}
ul{
background: url(bg.gif) repeat-x;
padding: 0;
margin: 0;
float: left;
font: bold 80% Verdana;
}
ul li{
float: left;
background:url(rightcorner.gif) no-repeat top right;
}
li a{
padding: 02em;
line-height: 1px;
background: url(leftcorner.gif) no-repeat top left;
text-decoration: none;
color:#000000;
float: left;
display: block;
}
ul a:hover{
color: #999999;
font-size: 13px;
}
-->
</style>
</head>

<body>
<ul id="mainNav">
<li class="first">
<li>Home</li>
<li>About</li>
<li>News</li>
<li>Product</li>
<li>Contact</li>
<li>Clients</li>
</ul>

</body>
</html>
try this code it works
Posted by raymar on 07/17, 01:01 PM
Hiiii
U did a great work.
Now my que. is in navigation menu if i clicked on home menu then home should be highlighted with some color or underline and then if i clicked on another menu let say DHTML menu then DHTML should be highlighted with some color or underline n at that time home should be in green color..
can u provide some cod for it..
thanx..
Posted by kunal on 04/05, 10:02 PM
nice menu
Posted by hemant on 04/29, 12:31 AM
thanks for the note. I LOVE THESE MENUS!!!
Posted by Think Flick on 06/02, 11:10 PM

Comment Pages 4 of 4 pages « First  <  2 3 4

Commenting is not available in this weblog entry.
Copyright 2006-2011 Dynamic Drive Read our Usage Terms before using any of the CSS codes.