Advanced Search Usage Terms Submit Contact
Dynamic Drive CSS Library
 
CSS Library

Advertise Here

CSS Layouts
Web Graphics
Online Tools:

CSS Library: Vertical CSS Menus: Here

Image Marker Menu

Author: Dynamic Drive

This CSS code creates a vertical menu out of ordinary lists, using an arrow image to replace the default HTML marker. The image is applied as a background image, with a different one shown when the mouse moves over the links.

Demo:

The two images used:

The CSS:

The HTML:

Code Info

Rate this code:

Date Posted: 05/24/2006

Revision History: July 12th, 08: Menu CSS and HTML updated. Menu now wraps around a DIV that controls its width.
Sept 2nd, 08: Menu CSS updated to correct bug in IE6.

Usage Terms: Click here

Your Comments (24)

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 3 pages  1 2 3 >

Anouther great article.
Posted by Luke on 05/25, 10:53 AM
Simple, yet serves it's purpose. Although it's not the most visually pleasing, it gets the job done. Nice addition!
Posted by Nathan on 05/29, 10:02 AM
Me da error en la validacio en W3c Css validator, el error que me da es el siguiente:

Línea: 12 Contexto : .markermenu li a

Propiedad no válida : background Faltan valores o no se reconocen los valores : white url(media/arrow-list.gif) no-repeat 2px center
Posted by Sebastian on 05/29, 11:04 AM
In IE7 all the menu items (except the first) are larger (height) than they are supposed to be.

Specifying an explicit width seems to fix the problem:

.markermenu li a{
width: 150px;
}

It does work correctly when the 1.1 DOCTYPE is specified, but not 1.0 Transitional.

Ugh, sometimes CSS can be such a pain in the ass. If only IE had gotten the box model correct on the first try...
Posted by Eric on 05/30, 08:03 PM
EXCELLENT !! Exactly what I was looking for. Thanks again DD.
Posted by Dave on 06/27, 03:08 AM
In Opera 9, submenus are above the screen, so they are not visible...
Posted by Boris on 07/03, 06:21 PM
simple, yet nice list button. It gave me inspiration for my website, thanks a lot!
Posted by Teguh on 08/24, 12:21 AM
I use a similar menu on one of my sites. Its nice!
Posted by kieren on 09/19, 09:32 AM
I want style width list menu
Posted by oo on 10/17, 01:28 AM
Is there a way to check if the code is CSS and XHTML 1.0 compatible?
Posted by ozel ders on 11/03, 03:16 AM

Comment Pages 1 of 3 pages  1 2 3 >


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