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: Vertical CSS Menus: Here

SuckerTree Vertical Menu (v1.1)

Author: Dynamic Drive

Nov 8th, 06: Fixed rendering issue in IE7, plus added support for automatic detection of sub menus width. No more configuring the "left" attributes!

This is a vertical, predominantly CSS based (with a touch of JavaScript) multi-level menu. It supports as many sub levels as you desire, plus multiple Suckertree menus on the same page. The CSS and JavaScript automatically adopts to your HTML code in each case.

The trick to Suckertree is a small adoptable piece of JavaScript that crawls the inner levels of a list menu and assigns the appropriate show/hide behavior to them. This differs from Suckerfish menu, which merely uses JavaScript to compensate for IE's shortcomings when it comes to CSS, so the menu is more rigid and requires manual changes to the CSS as the number of levels in your menu changes.

Demo:

The single image:

The CSS:

The HTML:

Code Info

Rate this code:

Date Posted: 11/08/2006

Revision History: Updated Nov 8th, 06' to version 1.1

Usage Terms: Click here

Your Comments (272)

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 27 of 28 pages « First  <  25 26 27 28 >

This Script not workin in mozilla firefox
Posted by Arun on 02/15, 12:31 AM
Hi
Great menu over all, but it has a small issue
If I set for submenus a negative margin (I need this)
.suckerdiv ul li ul{
position: absolute;
width: 170px; /*sub menu width*/
top: 0;
visibility: hidden;
margin-left:-20px;
}
see "margin-left:-20px" then a weird thing happens, In the first submenu, the first item is ok, but second has a wrong zIndex, however for 3 level this works ok.
Can't figure out what can be wrong?
Any idea?
thx
Posted by Eugen on 02/15, 05:57 PM
I'm trying to use this approach in two files, but the css file doesn't work correctly.
Posted by David Vitoria on 02/23, 05:57 AM
SuckerTree Vertical Menu (v1.1) submenu not display in firefox
Posted by senthilkumar on 02/28, 02:26 AM
how to put this code in the blogger template and how to use it?
Posted by kashif salman on 04/16, 09:56 AM
Excelent this is what i was looking for. I have made a search over the internet for pure CSS vertical menu. but its always come up with javascript file, and i don't want to use that. Thanks for the code also.
Posted by karel zaman on 04/21, 08:28 PM
I'm having a small issue with IE6, and I'm presuming it's a CSS issue.

If I look at the source of the page I can see the menu just fine - but it doesn't display.

It doesn't even appear to be a color issue because I can't even highlight the text on the page.

Needless to say it displays fine on non-IE browsers and I can see it on IE7 as well.

Any thoughts or pointers as to where to look to fix this?

Thanks - by the way, I do appreciate the system as it works well.

You can see this at http://charlesneilwoodworking.com. It's the menu on the right of the page. You should see brown on blue with grey borders (and you will with everything but IE6 :)
Posted by Ken Weinert on 04/30, 04:06 PM
It doesnt work with Google Chrome and Mozilla ..What shud i do ?
Posted by Apeksha on 05/07, 01:27 PM
Ur in for a tough ride,
u will have to modify code provided by microsoft to alter en hook up with the sharepoint link datasources.

sharepoint top menu code cannot be directly modified.

check this link for more info

See: http://blogs.msdn.com/ecm/archive/2006/12/02/customizing-the-wss-3-0-moss-2007-menu-control-mossmenu-source-code-released.aspx
Posted by fred on 06/02, 07:51 AM
how can i use it in blogger template?
Posted by Red Gear on 06/03, 04:05 AM

Comment Pages 27 of 28 pages « First  <  25 26 27 28 >

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