PDA

View Full Version : Spry menu verticals ul's not floating out to the right??


Abbica
08-25-2010, 04:01 PM
Hi, I seem to have done something to my menu bar vertical, when I go to preview it in the browser, my spry menu doesn't float out to the right, whereas it did before, I think I detached the java or did something in the properties but can only find SpryMenuBar .js when I go to insert the script, it makes no difference if I do select this one. I can't figure out what the problem is, I have this menubar across 8 different websites, all linked to this one menu bar css style.
I have pasted in my code below and the java script in red, the spry CSS is in blue, if anyone could take a look at this and see if anything is wrong, I don't know what to do and I really can't face starting from scratch again. Really appreciate any help with this.

<ul id="MenuBar1" class="MenuBarVertical">
<li><code><a href="../Territory-Homepage.html" class="bodytext">Homepage</a> </code></li>
<li><code><a href="#" class="bodytext">About Us</a>
</code>
<ul>
<li><code><a href="../Belgium/About-ILI-BelgEng.html">Irish Life International </a></code></li>
<li><code><a href="../Belgium/About-our-Parent-BelgEng.html">About Our Parent</a></code></li>
</ul>
</li>
<li><code><a href="#" class="bodytext">Products</a>
</code>
<ul>
<li><code><a class="MenuBarItemSubmenu" href="../Belgium/AMP-Intro-BelgEng.html">Asset Management Policy </a>
</code>
<ul>
<li><code><a href="../Belgium/AMP-Intro-BelgEng.html">Introduction </a></code></li>
<li><code><a href="../Belgium/AMP-FeatBenefits-BelgEng.html">Features &amp; Benefits</a></code></li>
<li><code><a href="../Belgium/AMP-InvestChoice-BelgEng.html">Investment Choice</a></code></li>
<li><code><a href="../Belgium/AMP-HowtoApply-BelgEng.html">How to Apply</a></code></li>
<li><code><a href="../Belgium/AMP-Literature-BelgEng.html">Literature</a></code></li>
</ul>
</li>
</ul>
</li>
<li><code><a href="#" class="bodytext">Funds </a>
</code>
<ul>
<li><code><a href="#">Price History</a></code></li>
<li><code><a href="#">Performance</a></code></li>
<li><code><a href="../Belgium/FundGuides-Factsheets-BelgEng.html">Fund Guide &amp; Factsheets</a></code></li>
</ul>
</li>
<li><code><a href="#" class="bodytext">Commentaries</a>
</code>
<ul>
<li><code><a href="../Belgium/Markteting-Commentary-BelgEng.html">Market Commentary </a></code></li>
<li><code><a href="../Belgium/Investment-Articles-BelgEng.html">Investment Articles</a></code></li>
</ul>
</li>
</ul>


<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>



@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;
font-size: 85%;
cursor: default;
width: 135px;
border: thin solid #CCCCCC;
background-color: #E8E8E8;
}
/* 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 (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: 95%;
position: relative;
text-align: left;
cursor: pointer;
width: 135px;
font-family: Geneva, Arial, Helvetica, sans-serif;
border: 1px solid #CCCCCC;
font-weight: normal;
color: #000000;
}
/* 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 95%;
padding: 0;
list-style-type: none;
font-size: 95%;
position: absolute;
z-index: 1020;
cursor: default;
width: 135px;
left: -1000em;
border: 1px solid #CCCCCC;
font-family: Geneva, Arial, Helvetica, sans-serif;
font-weight: bold;
color: #000000;
}
/* Menu item containers are same fixed width as parent */
ul.MenuBarVertical ul li
{
width: 150px;
}
/************************************************** *****************************
DESIGN INFORMATION: describes color scheme, borders, fonts
************************************************** *****************************/
/* Outermost menu container has borders on all sides */
ul.MenuBarVertical
{
border: 0.5px solid #CCC;
}
/* Submenu containers have borders on all sides */
ul.MenuBarVertical ul
{
border: 0.5px solid #CCC;
}
/* Menu items are a light gray block with padding and no text decoration */
ul.MenuBarVertical a
{
display: block;
cursor: pointer;
padding: 0.4em 0.90em;
text-decoration: none;
background-color: #EEEEEE;
}
/* 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: #002D5E;
color: #FFF;
}
/* 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: #666666;
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;
background: #FFF;
}
}

DWcourse
08-25-2010, 07:08 PM
You should update to Spry version 1.6: http://labs.adobe.com/technologies/spry/

And you appear to have deleted this style rule which makes the submenus appear:

/* 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;
}

Abbica
08-26-2010, 09:06 AM
Hi, thank you so much, that worked, I am very impressed.