CSS Library: Horizontal CSS Menus: Here
Underline Horizontal Menu
Author: Dynamic Drive
This is a sleek CSS horizontal menu with a popular "underline" effect shown whenever the mouse rolls over a link. Each link (<a>) also carries a background image, used to as the indented line graphic that separates each menu item. We choose to use a graphic instead of CSS's dashed line effect, since it seems to look better.
Demo:
The lone image (resized for easier download):
![]()
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 2 of 4 pages < 1 2 3 4 >
I have used this code but I don't understand what i'm supposed to use the image for and the grey line above and below has gaps where the text is? have I done somthing wrong?
I like it!! It's very clean and clear.
This navigation menu is awesome! It would also be great if you could make another two versions of this: the first would be a horizontal version with dropdown menu's when the cursor hover's over it (allowing for another level within it as well). The other version would be the same as what ive just mentioned but as a vertical menu with levels.
Great work guys, keep it up!
Cheers,
Ash.
Great work guys, keep it up!
Cheers,
Ash.
A nice, clean, simple menu. Thanks again, DD!
JASBIR
it's easy, just add FONT-FACE on this code
HOW TO CHANGE THE FONT STYLE OF THE MENU
it's easy, just add FONT-FACE on this code
#underlinemenu{
font-family: you font list here;
margin: 0;
padding: 0;
}
I like simplicity and usability in this menu.
Nice .. :)
how can we have the background image in the first li too?
so it will not look empty at the beginning
how can we have the background image in the first li too?
so it will not look empty at the beginning
I am excited to use this on my site, but I really want to edit some of the css to my liking so that is works well with my site... may I?
I also would love to know how to center the menu.
Thnx? Nice tool for work and study CSS possibility... Like it! Clean and clear.
Commenting is not available in this weblog entry.

