PDA

View Full Version : vertical pop-up menu on the right


luketapis
05-10-2011, 07:24 PM
how to make a vertical pop-up menu on the left with submenu on the right?
Is it possible?
I am using dreamwever 5

DWcourse
05-10-2011, 10:28 PM
The popup on a vertical Spry Menubar is by default on the right.

Did you mean menu on the right with the submenu opening to the left?

luketapis
05-10-2011, 11:19 PM
exaclly I think about submenu shows on the left

DWcourse
05-11-2011, 01:11 AM
The margin in this style aligns the submenu relative to the main menu:

ul.MenuBarVertical ul
{
margin: -5% 0 0 -100%;
padding: 0;
list-style-type: none;
font-size: 100%;
position: absolute;
z-index: 1020;
cursor: default;
width: 100%;
left: -1000em;
top: 0;
}

Setting the last margin value (the left margin) to -100% as I did above will cause the submenu to line up with the left edge of the main menu (-95% will give you a slight overlap). A zero value would put the submenu directly on top of the main menu.