Hostgator coupons for up to 99% off hosting for Dynamic Drive visitors!
Advanced Search Usage Terms Submit Contact
Dynamic Drive CSS Library

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.


The lone image (resized for easier download):

The CSS:


Code Info

Rate this code:

Date Posted: 05/01/2006

Revision History: None

Usage Terms: Click here

Your Comments (40)

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?
Posted by tobnob on 08/12, 05:12 AM
I like it!! It's very clean and clear.
Posted by kieren on 09/18, 01:23 PM
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!


Posted by Ash on 10/07, 09:17 AM
A nice, clean, simple menu. Thanks again, DD!
Posted by Dan on 10/13, 09:20 PM


it's easy, just add FONT-FACE on this code
font-familyyou font list here;
Posted by Jauhari on 11/22, 08:53 PM
I like simplicity and usability in this menu.
Posted by Beatbox on 12/22, 10:11 AM
Nice .. :)
how can we have the background image in the first li too?
so it will not look empty at the beginning
Posted by Dragon on 03/20, 09:13 PM
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?
Posted by Sara on 07/03, 11:52 AM
I also would love to know how to center the menu.
Posted by tess on 08/07, 08:29 PM
Thnx? Nice tool for work and study CSS possibility... Like it! Clean and clear.
Posted by Gadget on 08/21, 10:40 AM

Comment Pages 2 of 4 pages  <  1 2 3 4 >

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