PDA

View Full Version : Simple DDLevelsMenu Question | Dropdown Menu Placement



matthewzachary
10-15-2009, 10:35 PM
http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/index.htm

I am trying to manipulate the CSS to place the dropdown menu lower on the screen but cannot figure out how to make the change.

http://i2y.com/index2.shtml

The code is:

.ddsubmenustyle, .ddsubmenustyle ul{ /*topmost and sub ULs, respectively*/
font: normal 12px Arial;
margin: 0px 0px 10px 0px;
padding: 0;
position: absolute;
list-style-type: none;
background: #FFFFFF;
border: 1px solid #404040;
border-bottom-width: 1;
visibility: hidden;
z-index: 50;
}

ddadmin
10-16-2009, 07:13 PM
Warning: Please include a link to the DD script in question in your post. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) for the proper posting format when asking a question.

Are you referring to just the top level drop down menus, or all of the sub levels as well? Either way, this would have to be done inside the .js file, as the menus are positioned using JavaScript, not CSS. For example, to get all menus to drop down 10px further down from its default position, inside the .js file, you'd add to the line below the changes in red:


submenu.style.top=menutop+10+"px"