Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
ADOBE DREAMWEAVER:HomeDreamweaver ForumDreamweaver TutorialsFAQAdobe FlashWeb Design

Spry menu bar problem

COW Forums : Adobe Dreamweaver

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Share on Facebook
Cristina MesaSpry menu bar problem
by on Feb 15, 2010 at 9:35:53 pm

Hi all!!!
I'm designing a website dreanweaver and I started having problems with sprymenubar... Work in a MAC and navigate in safari and firefox and plays perfectly but someone working in Windows can not reproduce well in IE or firefox, In the first menu jumps up and is ranked q shoUld not appear (if I do not understand) and the second to move the mouse across the menu bar becomes a size extragigante...

Agradeceria much help!! I have spent days trying and that is not what happens!! I'm desperate!!
Greetings,

I copy here the code I modified in the Dreamweaver:

Sprymenubarhorizontal.Css:

@ charset "utf-8";

/ * Sprymenubarhorizontal.Css - version 0.6 - Spry Pre-release 1.6.1 * /

/ * Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. * /

/************************************************* ******************************

Layout information: Box model describes, Positioning, Z-order

************************************************** ***************************** /

/ * The outermost container of the menu bar, An auto Width box with no Margin or Padding * /
Ul.Menubarhorizontal
{
Margin: 0;
Padding: 0;
List-style-type: None;
Font-size: 100%;
Cursor: DefaUlt;
Width: Auto;
}
/ * Set the active menu bar with this class, Currently setting Z-index to accommodate 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 a fixed Width * /
Ul.Menubarhorizontal li
{
Margin: 0;
Padding: 0;
List-style-type: None;
Font-size: 100%;
Position: Static;
Text-align: Center;
Cursor: DefaUlt;
Width: 9em;
Float: Left;
Background-Color: # f60;
Font-family: Arial, Helvetica, Sans-serif;
}
/ * Submenus shoUld appear below their parent (Top: 0) with a higher Z-index, But they are initially off the Left side of the screen (-1000em) * /
Ul.Menubarhorizontal Ul
{
Margin: 0;
Padding: 0;
List-style-type: None;
Font-size: 100;
Z-index: 1000;
Cursor: DefaUlt;
Width: 9em;
Position: Absolute;
Left: -1000em;
}
/ * Submenu that is showing with class designation menubarsubmenuvisible, We set Left to auto so it comes onto the screen below its parent menu item * /
Ul.Menubarhorizontal Ul.Menubarsubmenuvisible
{
Left: Auto;
}
/ * Menu item containers are same fixed Width as parent * /
Ul.Menubarhorizontal Ul li
{
Width: 9em;
}
/ * Submenus shoUld appear slightly overlapping to the right (95%) and up (-5%) * /
Ul.Menubarhorizontal Ul Ul
{
Position: Absolute;
Margin: -0% 0 0 100%;
}
/ * Submenu that is showing with class designation menubarsubmenuvisible, We set Left to 0 so it comes onto the screen * /
Ul.Menubarhorizontal Ul.Menubarsubmenuvisible Ul.Menubarsubmenuvisible
{
Left: Auto;
Top: 0;
}

/************************************************* ******************************

Design information: Describes Color scheme, Borders, Fonts

************************************************** ***************************** /

/ * Submenu containers have Borders on all sides * /
Ul.Menubarhorizontal Ul
{
Border: 0px solid # ccc;
}
/ * Menu items are a light gray block with Padding and no text decoration * /
Ul.Menubarhorizontal to
{
Display: Block;
Cursor: Auto;
Padding: 0.5em 0.75em;
Text-decoration: None;
}
/ * Menu items that have mouse over or Focus have a blue Background and white text * /
Ul.Menubarhorizontal to:Hover, Ul.Menubarhorizontal to:Focus
{
Background-Color: # f60;
Color: # fff;
Font-size: 11.2px;
Outline-Color: # fff;
Cursor: DefaUlt;
}
/ * Menu items that are open with submenus are set to menubaritemHover with a blue Background and white text * /
Ul.Menubarhorizontal to.MenubaritemHover, Ul.Menubarhorizontal to.MenubaritemsubmenuHover, Ul.Menubarhorizontal to.Menubarsubmenuvisible
{
Background-Color: # f60;
Color: # 000;
}



And this:

Sprymenubarvertical.Css:

@ 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: Box model describes, 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: 100%;
Cursor: DefaUlt;
Width: 8em;
}
/ * Set the active menu bar with this class, Currently setting Z-index to accommodate 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: 100%;
Position: Relative;
Text-align: Center;
Cursor: Pointer;
Width: 8em;
Background-Color: # ff6600;
}
/ * 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: 8em;
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;
}

/************************************************* ******************************

Design information: Describes Color scheme, Borders, Fonts

************************************************** ***************************** /

/ * Outermost menu container has Borders on all sides * /
Ul.Menubarvertical
{
Border: 0px solid # ccc;
}
/ * Submenu containers have Borders on all sides * /
Ul.Menubarvertical Ul
{
Border: 0px solid # ccc;
}
/ * Menu items are a light gray block with Padding and no text decoration * /
Ul.Menubarvertical to
{
Display: Block;
Cursor: Pointer;
Background-Color: # f60;
Padding: 0.5em 0.75em;
Color: # f60;
Text-decoration: None;
}
/ * Menu items that have mouse over or Focus have a blue Background and white text * /
Ul.Menubarvertical to:Hover, Ul.Menubarvertical to:Focus
{
Background-Color: # 33c;
Color: # fff;
}
/ * Menu items that are open with submenus are set to menubaritemHover with a blue Background and white text * /
Ul.Menubarvertical to.MenubaritemHover, Ul.Menubarvertical to.MenubaritemsubmenuHover, Ul.Menubarvertical to.Menubarsubmenuvisible
{
Background-Color: # f60;
Color: # fff;
}

/************************************************* ******************************

Submenu indication: Styles if there is a submenu under a given menu item

************************************************** ***************************** /


/************************************************* ******************************

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;
Filter:Alpha (opacity:0.1);
}
/ * 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;
Float: Left;
Background: # fff;
}
}


Return to posts index
Reply   Like  

Richard WilliamsRe: Spry menu bar problem
by on Feb 15, 2010 at 9:45:45 pm

can you link us to the site aswell please so we can see the issue you are refering to

Thanks

Richard Williams
p.s. Please remember to rate our post replies and tick if solved. Also, please remember that we here are NOT employed by Adobe, we do this out of love and fun, so its always nice to recieve a Please and Thank You! :o)


Return to posts index
Reply   Like  

Cristina MesaRe: Spry menu bar problem
by on Feb 15, 2010 at 9:50:35 pm

Hola!!

El sitio es http://www.expotranscarga.com

Muchas gracias!!


Return to posts index
Reply   Like  


Richard WilliamsRe: Spry menu bar problem
by on Feb 15, 2010 at 10:19:31 pm

Half of the file SpryMenuBarHorizontal.css is missing!!!

You need to reinstate this CSS, as their are important hacks inside this to allow the menu bar to work correctly

Richard Williams
p.s. Please remember to rate our post replies and tick if solved. Also, please remember that we here are NOT employed by Adobe, we do this out of love and fun, so its always nice to recieve a Please and Thank You! :o)


Return to posts index
Reply   Like  

Irena AdamowiczRe: Spry menu bar problem
by on Jul 28, 2011 at 10:42:13 pm

Hello :)
To begin with, I'm a total novice in writing web pages and this is my first job. I’m using Dreamweaver cs3 and unfortunately I'm already having problems with my spry menu bar. It works fine in opera and Firefox, but in IE my submenu buttons go up over parent button instead of going under it. Please, would somebody be kind enough to help me out with this problem?

The web page is http://www.almagda.lt

Thank you very much :)

My css code:

@charset "UTF-8";

/* SpryMenuBarHorizontal.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, an auto width box with no margin or padding */
ul.MenuBarHorizontal
{
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
cursor: default;
width: auto;
}
/* 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 a fixed width */
ul.MenuBarHorizontal li
{
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
position: relative;
text-align: left;
cursor: pointer;
width: 107px;
float: left;
background-repeat: repeat-x;
background-color: #C3C3C3;
}
/* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
ul.MenuBarHorizontal ul
{
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
z-index: 1020;
cursor: default;
width: 107px;
position: absolute;
left: -1000em;
background-color: #C3C3C3;
}
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
{
left: auto;
margin: -2px;
float: left;
}
ul.MenuBarHorizontal li ul li
{
clear: left;
}
/* Menu item containers are same fixed width as parent */
ul.MenuBarHorizontal ul li
{
width: 200px;
}
/* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
ul.MenuBarHorizontal ul ul
{
position: absolute;
margin-top: 0;
margin-right: 0;
margin-bottom: 0;
margin-left: 95%;
}
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
{
left: auto;
top: 0;
}

/*******************************************************************************

DESIGN INFORMATION: describes color scheme, borders, fonts

*******************************************************************************/

/* Submenu containers have borders on all sides */
ul.MenuBarHorizontal ul
{
border: 1px solid #CCC;
}
/* Menu items are a light gray block with padding and no text decoration */
ul.MenuBarHorizontal a
{
display: block;
cursor: pointer;
color: #333;
text-decoration: none;
background-repeat: repeat;
padding: 7px;
background-color: #C3C3C3;
}
/* Menu items that have mouse over or focus have a blue background and white text */
ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
{
background-color: #33C;
color: #FFF;
}
/* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
{
background-color: #33C;
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.MenuBarHorizontal a.MenuBarItemSubmenu
{
background-image: url(SpryMenuBarDown.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
}
/* 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.MenuBarHorizontal ul 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.MenuBarHorizontal a.MenuBarItemSubmenuHover
{
background-image: url(SpryMenuBarDownHover.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.MenuBarHorizontal ul 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.MenuBarHorizontal 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.MenuBarHorizontal li.MenuBarItemIE
{
display: inline;
f\loat: left;
background: #FFF;
}
}


Return to posts index
Reply   Like  

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Share on Facebook


FORUMSTUTORIALSFEATURESVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2013 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]