Vertical Menu styles in IE6
I have a vertical menu on this page:
Momentum
staging
It works fine in IE7, Firefox, Safari, Camino.
In IE6 it seems that the CSS styles for the text are being
ignored.
Can anyone help?
Thanks,
Lou
I commented out the line in "spryMenuBar.js" that says
"this.createIframeLayer(menu);" and this fixed the problem for me.
Good luck.
Similar Messages
-
White flash in IE 7 with vertical menu
How do I get rid of the whitebox that flashes with a vertical
menu in IE 7?
This works fine in other browsers.
Here is a sample page
look
at in IE 7 to see the problemI dont see anything flashing in IE7, FF, i only see the arrow
disapearing and showing on mouseover in IE6. or is this what u
mean?
Also im seeing your using /* SpryMenuBar.js - Revision: Spry
Preview Release 1.4 */ <-- 1.4
I suggest downloading version 1,6 and check if the problem is
still there. -
Iframe flashing Spry Vertical menu
Hi All,
Im having an issue with the Spry Vertical Menu with flyouts.
It appears that the iframe used for the IE hack is flashing
on the screen whenever I rollover a menu item with a flyout in it.
Anyone having this same issue? Any help would be much
appriciated as I like the new Spry Widgets but I cannot have
glitches such as these... thanks
Here is my CSS:
@charset "UTF-8";
/* SpryMenuBarVertical.css - Revision: Spry Preview Release
1.4 */
/* Copyright (c) 2006. Adobe Systems Incorporated. All rights
reserved. */
LAYOUT INFORMATION: describes box model, positioning,
z-order
/* The outermost container of the Menu Bar, a fixed width box
with no margin or padding */
ul.MenuBarVertical
margin: 82px 0px 0px 26px;
padding: 0;
list-style-type: none;
font-size: 1em;
cursor: default;
width: 14.5em;
/* Set the active Menu Bar with this class, currently setting
z-index to accomodate IE rendering bug:
http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html
ul.MenuBarActive
z-index: 1000;
/* Menu item containers, position children relative to this
container and are same fixed width as parent */
ul.MenuBarVertical li
margin: 0;
padding: 0px 0px 0px 0px;
list-style-type: none;
font-size: 1em;
position: relative;
text-align: left;
cursor: pointer;
width: 14.5em;
/* Submenus should appear slightly overlapping to the right
(95%) and up (-5%) with a higher z-index, but they are initially
off the left side of the screen (-1000em) */
ul.MenuBarVertical ul
margin: -5% 0 0 95%;
padding: 0;
list-style-type: none;
font-size: 100%;
position: absolute;
z-index: 1020;
cursor: default;
width: 8.2em;
left: -1000em;
top: 0;
/* Submenu that is showing with class designation
MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen
ul.MenuBarVertical ul.MenuBarSubmenuVisible
left: 0;
/* Menu item containers are same fixed width as parent */
ul.MenuBarVertical ul li
width: 8.2em;
background-color:#620808;
DESIGN INFORMATION: describes color scheme, borders, fonts
/* Outermost menu container has borders on all sides */
ul.MenuBarVertical
text-decoration:none;
/* Submenu containers have borders on all sides */
ul.MenuBarVertical ul
border: 1px solid #000;
/* Menu items are a light gray block with padding and no text
decoration */
ul.MenuBarVertical a
display: block;
cursor: pointer;
font-size: 1em;
padding: 0.5em 0em 0.5em 2em;
color: #dfc398;
text-decoration:none;
/* Menu items that have mouse over or focus have a blue
background and white text */
ul.MenuBarVertical a:hover, ul.MenuBarVertical a:focus
background-image:url(../images/office/side_menu_rollover.jpg);
background-repeat:no-repeat;
background-position:6px 8px;
color: #FFF;
text-decoration:none;
/* Menu items that are open with submenus are set to
MenuBarItemHover with a blue background and white text */
ul.MenuBarVertical a.MenuBarItemHover, ul.MenuBarVertical
a.MenuBarItemSubmenuHover, ul.MenuBarVertical
a.MenuBarSubmenuVisible
color: #FFF;
SUBMENU INDICATION: styles if there is a submenu under a
given menu item
/* Menu items that have a submenu have the class designation
MenuBarItemSubmenu and are set to use a background image positioned
on the far left (95%) and centered vertically (50%) */
ul.MenuBarVertical a.MenuBarItemSubmenu
background-image: url(SpryMenuBarRight.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
/* Menu items that are open with submenus have the class
designation MenuBarItemSubmenuHover and are set to use a "hover"
background image positioned on the far left (95%) and centered
vertically (50%) */
ul.MenuBarVertical a.MenuBarItemSubmenuHover
background-image: url(SpryMenuBarRightHover.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
BROWSER HACKS: the hacks below should not be changed unless
you are an expert
/* HACK FOR IE: to make sure the sub menus show above form
controls, we underlay each submenu with an iframe */
ul.MenuBarVertical iframe
position: absolute;
z-index: 1010;
/* HACK FOR IE: to stabilize appearance of menu items; the
slash in float is to keep IE 5.0 from parsing */
@media screen, projection
ul.MenuBarVertical li.MenuBarItemIE
display: inline;
f\loat: left;ok... no sooner than I hit submit... figured it out...
If anyone comes across this, it seems just add width:0,
hieght:0 to the following css:
/* HACK FOR IE: to make sure the sub menus show above form
controls, we underlay each submenu with an iframe */
ul.MenuBarVertical iframe
position: absolute;
z-index: 1010;
width:0px;
height:0px;
Happy coding! -
Links from 2nd vertical menu appear in submenu of 1st vertical menu
http://www.westhoustonairport.com/index_troubleshoot.shtml - Problem occurs in IE
I have five vertical Spry menus. Some of the menus have submenus. Go to PHOTO COLLECTION first, and the submenu looks good. Then go to either HANGARS / OFFICES or HISTORY in the third vertical menu, and you'll see that the submenus contain links from the fourth vertical menu.
As a temporary fix, I switched PHOTO COLLECTION (which has a submenu) with ON-AIRPORT BUSINESSES (no submenu), which you can see here:
http://www.westhoustonairport.com. There is no problem now because the fourth column no longer contains links with submenus.
I, however, need to change the links back to the previous order. What is causing the links to appear in the previous column's submenu? Thank you.The following is where you should specify the menu items background color
ul.MenuBarVertical a
display: block;
cursor: pointer;
/*background-color: #000ECE;*/
padding: 0.5em 0.95em;
/*color: #333;*/
color: #FFF;
text-decoration: none;
The browser and I do not understand the following style rule
ul.MenuBarVertical a.MenuBarItemSubmenu
/*background-image: url(SpryMenuBarRight.gif);*/
background-image: url(SpryMenuBarRightHover.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
display:!important;
Gramps -
Why does Vertical Menu conceal items in design view?
I have a problem with a vertical menu that is placed in my page's left column. When workign in desing view, the vertical menu's sub menu components remain open and this conceals the things that I want to work on that are placed behind the sub-menu items. Any ideas how I can "collapse" the menu when workginin design view? Thanks!
Hello Beth, to follow is the CSS for my menu bar (vertical). I see that the left: -10000em; is in there correctly. Notice anything out of line? Thanks for your input!!!
Rod
@charset "UTF-8";
/* SpryMenuBarVertical.css - version 0.6 - Spry Pre-Release 1.6.1 */
/* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
LAYOUT INFORMATION: describes box model, positioning, z-order
/* The outermost container of the Menu Bar, a fixed width box with no margin or padding */
ul.MenuBarVertical
/* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
ul.MenuBarActive
z-index: 1000;
/* Menu item containers, position children relative to this container and are same fixed width as parent */
ul.MenuBarVertical li
/* Submenus should appear slightly overlapping to the right (95%) and up (-5%) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
ul.MenuBarVertical ul
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
ul.MenuBarVertical ul.MenuBarSubmenuVisible
/* Menu item containers are same fixed width as parent */
ul.MenuBarVertical ul li
DESIGN INFORMATION: describes color scheme, borders, fonts
/* Outermost menu container has borders on all sides */
ul.MenuBarVertical
/* Submenu containers have borders on all sides */
ul.MenuBarVertical ul
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
border-top-color: #EEE;
border-right-color: #EEE;
border-bottom-color: #EEE;
border-left-color: #EEE;
/* Menu items are a light gray block with padding and no text decoration */
ul.MenuBarVertical a
/* Menu items that have mouse over or focus have a blue background and white text */
ul.MenuBarVertical a:hover, ul.MenuBarVertical a:focus
background-color: #F00;
color: #FFF;
font-size: 12px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
/* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
ul.MenuBarVertical a.MenuBarItemHover, ul.MenuBarVertical a.MenuBarItemSubmenuHover, ul.MenuBarVertical a.MenuBarSubmenuVisible
background-color: #F00;
color: #FFF;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
SUBMENU INDICATION: styles if there is a submenu under a given menu item
/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarVertical a.MenuBarItemSubmenu
background-image: url(SpryMenuBarRight.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
font-size: 12px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarVertical a.MenuBarItemSubmenuHover
background-image: url(SpryMenuBarRightHover.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
BROWSER HACKS: the hacks below should not be changed unless you are an expert
/* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
ul.MenuBarVertical iframe
/* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
@media screen, projection
ul.MenuBarVertical li.MenuBarItemIE
display: inline;
f\loat: left;
background: #FFF;
width: 160px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none; -
Design a vertical menu spry with DW CS3. The menu is shorter
in height than the default, font is designed smaller and bold. Menu
looks fine in preview, but reverts back to default in browser after
uploading to site. Followed the instructions in the Help, but
missed something.
margin - 0
padding - 0
float - none
What else can I tell you to help figure out issue?
http://www.amvetspost29.com
Thank you.....In SpryMenuBarVertical.css change the following style:
ul.MenuBarVertical ul.MenuBarSubmenuVisible
left: 0;
The value of left needs to be changed to a negative value equal to the width of the menu and submenu. Using the default styles, it should be changed to -15.9em.
You'll also need to change the submenu indicators. There are two style rules involved:
ul.MenuBarVertical a.MenuBarItemSubmenu
background-image: url(SpryMenuBarRight.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
ul.MenuBarVertical a.MenuBarItemSubmenuHover
background-image: url(SpryMenuBarRightHover.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
You will need to replace SpryMenuBarRight.gif and SpryMenuBarRightHover.gif with images of left-facing arrows. Also change the background-position in both style rules to 5% 50%.
By the way, you should be aware of the fact that Adobe announced a couple of months ago that it no longer plans to invest in the development of Spry. Although your menus should work, Adobe plans to remove Spry menus from the next major version of Dreamweaver. -
My Spry Vertical Menu does not "drop-down"
I've created my Srpy Vertical Menu and does not drop down to the second level, am I missing something?, I must have moved something in the style or something because it does work in a new page but not in the one I'm creating, how can I restart?...
My page is
http://www.solucionesinternetgdl.biz/radiadoresenguadalajara/html/Prueba1I've created my Srpy Vertical Menu and does not drop down to the second level, am I missing something?, I must have moved something in the style or something because it does work in a new page but not in the one I'm creating, how can I restart?...
My page is
http://www.solucionesinternetgdl.biz/radiadoresenguadalajara/html/Prueba1 -
Artifacts between Logo and Vertical Menu Bar
See http://www.ottawapatentagency.com
Artifact #1: a light grey dot at the joint between the logo and the vertical menu bar, on the right hand side.
Artifact #2: on mouse over 'Home' - the top menu item of the vertical menu bar - there appears a light-colored, 1-pixel separation between the logo and the vertical menu bar.
The logo is a standard gif and the vertical menu bar is a standard spry menu bar, I am puzzled.
Anyone has a solution?You could try adding the following code above your closing </head> tag:
<!--[if IE]>
<style>
UL.MenuBarVertical:after
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
font-size: 0;
UL.MenuBarVertical
display: inline-block;
UL.MenuBarVertical{
display: block;
-height: 1px;
</style>
<![EndIf]-->
Also, it looks like you need to add closing brackets to the following two lines:
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"
<link rel="icon" href="/favicon.ico" type="image/x-icon" -
I am using spry to create two vertical menu bars on the same
page. But I want to apply different style and colour to each of
them. If I change anything on the Spry menubar vertical CSS, it
applies to all the menu bars items on the page. Do I need to create
another CSS, but how to link it to the second menu bar? I am a new
user of CS3, would appreciate any help on this. Thanks.
W. ChuiHi Danilo, thank you for your response. I tried, but it
didn't work. I am not sure if I have done something wrong. Here is
SpryMenuVertical ccs I have changed according to my understanding
of your reply. I have spent 2 days trying to figure it out... I
hope you can help me. Thanks.
@charset "UTF-8";
/* SpryMenuBarVertical.css - Revision: Spry Preview Release
1.4 */
/* Copyright (c) 2006. Adobe Systems Incorporated. All rights
reserved. */
LAYOUT INFORMATION: describes box model, positioning,
z-order
/* The outermost container of the Menu Bar, a fixed width box
with no margin or padding */
ul.MenuBarVertical
margin: 0;
padding: 0;
list-style-type: none;
cursor: default;
width: 150px;
ul.MenuBarVertical2
margin: 0;
padding: 0;
list-style-type: none;
cursor: default;
width: 150px;
/* Set the active Menu Bar with this class, currently setting
z-index to accomodate IE rendering bug:
http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html
ul.MenuBarActive
z-index: 1000;
/* Menu item containers, position children relative to this
container and are same fixed width as parent */
ul.MenuBarVertical li
margin: 0;
padding: 0;
list-style-type: none;
font-size: 11px;
position: relative;
text-align: left;
cursor: pointer;
width: 150px;
ul.MenuBarVertical2 li
margin: 0;
padding: 0;
list-style-type: none;
font-size: 11px;
position: relative;
text-align: left;
cursor: pointer;
width: 150px;
/* Submenus should appear slightly overlapping to the right
(95%) and up (-5%) with a higher z-index, but they are initially
off the left side of the screen (-1000em) */
ul.MenuBarVertical ul
margin: 0% 0 0 113%;
padding: 0;
list-style-type: none;
font-size: 11px;
position: absolute;
z-index: 1020;
cursor: default;
width: 150px;
left: -1000em;
top: 0;
ul.MenuBarVertical2 ul
margin: 0% 0 0 113%;
padding: 0;
list-style-type: none;
font-size: 11px;
position: absolute;
z-index: 1020;
cursor: default;
width: 150px;
left: -1000em;
top: 0;
/* Submenu that is showing with class designation
MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen
ul.MenuBarVertical ul.MenuBarSubmenuVisible
left: 0;
ul.MenuBarVertical2 ul.MenuBarSubmenuVisible
left: 0;
/* Menu item containers are same fixed width as parent */
ul.MenuBarVertical ul li
width: 150px;
ul.MenuBarVertical2 ul li
width: 150px;
DESIGN INFORMATION: describes color scheme, borders, fonts
/* Outermost menu container has borders on all sides */
ul.MenuBarVertical
border-top-width: thin;
border-right-width: thin;
border-bottom-width: thin;
border-left-width: thin;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
ul.MenuBarVertical2
border-top-width: thin;
border-right-width: thin;
border-bottom-width: thin;
border-left-width: thin;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
/* Submenu containers have borders on all sides */
ul.MenuBarVertical ul
border: 1px solid #999933;
ul.MenuBarVertical2 ul
border: 1px solid #FF9900;
/* Menu items are a light gray block with padding and no text
decoration */
ul.MenuBarVertical a
display: block;
cursor: pointer;
background-color: #EEE;
padding: 0.5em 0.75em;
color: #666600;
text-decoration: none;
ul.MenuBarVertical2 a
display: block;
cursor: pointer;
background-color: #EEE;
padding: 0.5em 0.75em;
color: #FF9900;
text-decoration: none;
/* Menu items that have mouse over or focus have a blue
background and white text */
ul.MenuBarVertical a:hover, ul.MenuBarVertical a:focus
background-color: #999933;
color: #FFF;
background-image: none;
ul.MenuBarVertical2 a:hover, ul.MenuBarVertical a:focus
background-color: #FF9900;
color: #FFF;
background-image: none;
/* Menu items that are open with submenus are set to
MenuBarItemHover with a blue background and white text */
ul.MenuBarVertical a.MenuBarItemHover, ul.MenuBarVertical
a.MenuBarItemSubmenuHover, ul.MenuBarVertical
a.MenuBarSubmenuVisible
background-color: #999933;
color: #EEE;
ul.MenuBarVertical2 a.MenuBarItemHover, ul.MenuBarVertical2
a.MenuBarItemSubmenuHover, ul.MenuBarVertical2
a.MenuBarSubmenuVisible
background-color: #FF9900;
color: #EEE;
SUBMENU INDICATION: styles if there is a submenu under a
given menu item
/* Menu items that have a submenu have the class designation
MenuBarItemSubmenu and are set to use a background image positioned
on the far left (95%) and centered vertically (50%) */
ul.MenuBarVertical a.MenuBarItemSubmenu
background-image: url(SpryMenuBarRight.gif);
background-repeat: no-repeat;
background-position: 90% 50%;
height: auto;
width: 150px;
ul.MenuBarVertical2 a.MenuBarItemSubmenu
background-image: url(SpryMenuBarRight.gif);
background-repeat: no-repeat;
background-position: 90% 50%;
height: auto;
width: 150px;
/* Menu items that are open with submenus have the class
designation MenuBarItemSubmenuHover and are set to use a "hover"
background image positioned on the far left (95%) and centered
vertically (50%) */
ul.MenuBarVertical a.MenuBarItemSubmenuHover
background-image: url(SpryMenuBarRightHover.gif);
background-repeat: no-repeat;
background-position: 90% 50%;
ul.MenuBarVertical2 a.MenuBarItemSubmenuHover
background-image: url(SpryMenuBarRightHover.gif);
background-repeat: no-repeat;
background-position: 90% 50%;
BROWSER HACKS: the hacks below should not be changed unless
you are an expert
/* HACK FOR IE: to make sure the sub menus show above form
controls, we underlay each submenu with an iframe */
ul.MenuBarVertical iframe
position: absolute;
z-index: 1010;
/* HACK FOR IE: to stabilize appearance of menu items; the
slash in float is to keep IE 5.0 from parsing */
@media screen, projection
ul.MenuBarVertical li.MenuBarItemIE
display: inline;
f\loat: left;
background: #FFF; -
Spry Vertical Menu Bar Styling Issues
Hello all,
I'm having CSS issues with a spry vertical menu bar. The Menu
is fairly basic but, it has some odd sizing requirements specified
by it's designer. The designer would like the sub menu items to all
have different widths that correspond to the actual content within
them. Here is sample.
http://staging.rm306.com/cycle/
The menu seen at the page above was not build with Spry. It
was build with another tool and has considerable problems with
consistent browser display.
Can anyone give me a short list of styles and where they
should be applied that might help me achieve this reletively simple
effect?
I've tried to use Spy menu bars in my projects in the past
but, there was always some sticking point. I'd like this time to be
the winner if possible.
Thanks for your time and patience in advance,
KevinThe sample page I posted came after searching for an easy
"how to do it". The closest I found to a tutorial was this:
http://www.adobe.com/devnet/dreamweaver/articles/spryte_menu.html
The author designs and implements a spry menu with Fire Works
graphics. The last section describes how to modify the existing CSS
for multiple levels. Yet I found the sample page easier to follow.
I hope this helps though. -
How do I get a submenu to have a scroll bar? My list goes past the bottom of the page and I would like the submenu to have a scroll bar to see the additional items.
Sure, I couldn't see from here...did you actually have a link to your page?
But you should have a comparable rule in the vertical menu:
ul.MenuBarVertical ul
margin: -5% 0 0 95%;
padding: 0;
list-style-type: none;
font-size: 100%;
position: absolute;
z-index: 1020;
cursor: default;
width: 8.2em;
left: -1000em;
top: 0;
height: 200px; /*make this value whatever you want to so that your menu stays on the page */
overflow: scroll;
You may need to actually specify submenus, too, but it should cascade from the above rule...
ul.MenuBarVertical ul ul {
height: 200px;
overflow: scroll;
If you TRULY only need one submenu to scroll, throw an ID on that submenu's ul and address it in the CSS with a special rule (leaving it off all the ones you don't want to scroll):
ul#specialscroll {
height: 200px;
overflow: scroll;
Beth -
Vertical Menu Bar with custom positioning
I am working on a site that uses the very old mm_menu script. It is a PITA to maintain and modify. However, it allows on thing I have been unable to accomplish with Spry Vertical Menu -- the second level menus appear in the same vertical space as the first level menu. The normal operation for such menus is for the second level to start more or less with the vertical position of the first level button. But this means the second level often drops far below the bottom of the lowest first level button.
Does anyone know of a way to customize where each second level appears (third and fourth are not needed)? Or some other UL/LI based menu code that can do this?Hi Bob,
My first suggestion would be to re-order your navigation list to avoid the problem in the first place or figure out a different design altogether. By re-ordering, I mean place menu items with the largest submenu at the top, and those with the smallest at the bottom. Of course I understand there may be reasons not to do this, so here is what you can do to control where the menu positions itself. The vertical positioning is controlled by "position: absolute;" style in all <ul>s contained within a <ul class='MenuBarVertical'>. When you position something with absolute, it looks for its nearest parent that is positioned relatively (in this case the <li> items within <ul class='MenuBarVertical'>). from there you can designate pixels or ems to offset from the top or bottom of the parent. so an example of a way to do this is below.
to give your menu the most control, you can assign each submenu its own class and decide its vertical positioning.
your current html/css is something like:
<style>
ul.MenuBarVertical ul
margin: -5% 0 0 95%;
padding: 0;
list-style-type: none;
font-size: 100%;
position: absolute;
z-index: 1020;
cursor: default;
width: 8.2em;
left: -1000em;
top: 0; /* <-------this is what you will change for each submenu */
</style>
so to change this you could assign a class name to each submenu to look something like this
<ul class='MenuBarVertical'>
<li>
<a href='#' class='MenuBarItemSubmenu'>Item 1</a>
<ul class='item_1'>
<li>sub1</li>
<li>sub2</li>
<li>sub3</li>
</ul>
</li>
<li>
<a href='#' class='MenuBarItemSubmenu'>Item 2</a>
<ul class='item_2'>
<li>sub1</li>
<li>sub2</li>
<li>sub3</li>
</ul>
</li>
<li>
<a href='#' class='MenuBarItemSubmenu'>Item 3</a>
<ul class='item_3'>
<li>sub1</li>
<li>sub2</li>
<li>sub3</li>
</ul>
</li>
<li>
<a href='#' class='MenuBarItemSubmenu'>Item 4</a>
<ul class='item_4'>
<li>sub1</li>
<li>sub2</li>
<li>sub3</li>
</ul>
</li>
</ul>
and extend the class styling to control each menu's vertical position. "top:0;" is what is default and aligns the top of the submenu with the top of its parent <li>. Giving it a negative number would move the submenu up and a positive number would move it down (can be in pixels, ems, etc.). You can also use "bottom:0;" to align the bottom of the submenu with the bottom of its parent <li>. Giving it a negative number would move the submenu down, and a positive number would move it up. So using the above menu/list format you could position each submenu exactly where you want to:
<style>
ul.MenuBarVertical ul
margin: -5% 0 0 95%;
padding: 0;
list-style-type: none;
font-size: 100%;
position: absolute;
z-index: 1020;
cursor: default;
width: 8.2em;
left: -1000em;
/* top: 0; <-------comment this out or remove it. we will set the position for each menu*/
ul.MenuBarVertical ul.item_1
top: 0;
ul.MenuBarVertical ul.item_2
top: -30px;
ul.MenuBarVertical ul.item_3
bottom: -2em;
ul.MenuBarVertical ul.item_4
bottom: 0;
</style>
Of course there are other ways to do this, but the lesson to remember is how absolute positioning works. It looks for its nearest relatively positioned element and positions itself from that using top/bottom/left/right. I hope this gives you a workable solution or at least gets you moving in the right direction.
Dan -
What can I do about vertical menu bars that exceed the page
height? Some of my menus contain lots of selections within the
submenus, causing the bars to drop beyone the displayed page.
Unfortunately, some of the page viewers can't navigate these as
well since they have an older style mouse with no wheel. Is there a
way to make the bars automatically create a new sub-menu bar when
the display legth is out of range (like page length=600px, for
example)?In the SpryMenuBarVertical.css stylesheet, apply a line-height to this style:
/* Menu item containers, position children relative to this container and are same fixed width as parent */
ul.MenuBarVertical li
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
position: relative;
text-align: left;
cursor: pointer;
width: 8em;
line-height: 200%; /* I exaggerated for effect... */
It may be in px, though I showed it in percentage.
Also, don't forget to upload your changed CSS file, when you make these changes
Beth -
How do i customize the states in a vertical menu bar?
i see that it is possible to change the states for a horizontal venu bar, but i can't get it to work for the vertical one. please tell me we can edit the states in a vertical menu bar.
valerieYes, you've hit a bug in Muse, that will be fixed in the next release.
The bug happens when you have a gradient fill for the default state, but no gradient fill for your other state. The vertical menu has this look by default. You can work around it by removing the gradient in the default state, or adding a gradient for the other states. -
Is there a way to create a vertical menu for tablet that stays in place?
I am a novice in web design, and I want to make a vertical menu for a tablet page that stays in place.
It should not scroll, and it has to resize depending on screen size, so it looks the same across different tablet sizes.
Is this possible in Muse? After reading some posts I am getting the feeling this is not possible at all, is that really true?
If it can't be done in Muse, can I do it another way? In Dreamweaver for instance?
The reason I want this is that in my opinion horizontal menu's for tablets are ergonomically bad design, and just plain annoying. You always have to use two hands, lift one hand and then you probably block the view of the screen.
Vertical menu's for tablets just make more sense since they can be made so that you could place them on the side of the screen so it would be possible to navigate with the hand that is holding that side of the tablet.
I hope someone can help me.Yes, I am using the widget.
It seems it is not possible to make the menu stick in tablet design (the pin options are greyed out). Nor is it possible to make the menu scale with screen sizes.
A possible solution would be the ability to make it stretch to 100% screen size, like you can with horizontal objects.
I have noticed though, that, for some reason, in web design it is discouraged or very hard to make things stretch 100% vertically. It seems to cause problems, and I don't understand why.
Since I have started in web design, I have seen many posts of people having design problems, where stretching 100% vertically would be the obvious solution.
Maybe you are looking for
-
How many times can I install mountain lion on my macbook pro?
My Macbook pro came with lion pre-installed. However, I bought at a time that allowed me to update to mountain lion for free. Therefore, I wanted to know if I will have to pay to re-download mountain lion on my Macbook pro if I have to restore the sy
-
How to call a bean method from javascript event
Hi, I could not find material on how to call a bean method from javascript, any help would be appreciated. Ralph
-
WebMin, Server Admin and Workgroup Manager
I saw a fairly recent post where it was stated that "Using webmin/virtualmin will break SA and WGM sooner or later." I assume that means that SA and WGM will no longer be reliable, or usable at all, but that the services provided by Tiger Server will
-
Missing mappings in Business Content Object
Hello Gurus, The SAP Standard cube 0PA_C01 has 0CNTRCTTYPE (Contract Type) in its structure, which does a master data lookup from 0EMPLOYEE (as 0CNTRCTTYPE, is an attribute of 0EMPLOYEE) to populate data. But apparently there appears to be no mapping
-
Uninstall indesign CC 9.2.2
I have 2 indesigns installed on my PC one is current, and one is 9.2.2 - i cannot find this software in the system though (?). I mean it is not in the software installed list, and Использование CC Cleaner Tool для устранения неполадок при установке |