logo-dw

Go Back   Dreamweaver Club Forums > Dreamweaver forums > Spry
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 10-09-2008, 03:11 PM   #1
designer mama
 
Join Date: Oct 2008
Posts: 2
Default Major Issues with SPRY and IE...

Greetings everyone,

This is my first post on this site and I have an issue that I have tried everything to solve. A site that I am working on - www.dyekorasumda.com - incorporates a horizontal SPRY menu that works absolutely beautifully in Mozilla and Safari, but tanks in IE. I see a lot of posts about this, but none that address my issue.

Only one of the drop downs for the entire menu wants to come from the sky rather than from below the parent. I have no idea how to fix this, as the CSS applies for the whole menu bar, correct? How does one drop down choose to disobey? It's got me stumped. Also, the menu bar doesn't want to accept the background color in the CSS file in IE. WTF is up with IE?

Any help will be GREATLY appreciated. I have created horizontal drop downs before, but never had this issue...

Here is the CSS code for the SPRY menu: (it's long, please forgive me)
__________________________________________________ _____________________

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;
    font-family: "Trebuchet MS";
    background-attachment: fixed;
    background-image: url(../../../../../../../Desktop/Dyekora%20Sumda%20Web/images/Button.gif);
    background-repeat: no-repeat;
    color: #00CC33;
}
/* 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;
    font-family: "Trebuchet MS";
    font-size: 100%;
    color: #FFCCFF;
    background-image: url(../../../../../../../Desktop/Dyekora%20Sumda%20Web/images/Selected-Button.gif);
    background-repeat: no-repeat;
    background-color: #006633;
}
/* 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: 9.7em;
    float: left;
    font-family: "Trebuchet MS";
    color: #00CC33;
    background-image: url(../../../../../../../Desktop/Dyekora%20Sumda%20Web/images/Button.gif);
    background-repeat: no-repeat;
    background-color: #663366;
}
/* 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: 8em;
    position: absolute;
    left: -1000em;
    font-family: "Trebuchet MS";
    color: #00CC33;
    background-image: url(../../../../../../../Desktop/Dyekora%20Sumda%20Web/images/Hover%20button.gif);
}
/* 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;
    font-family: "Trebuchet MS";
    color: #00CC33;
    background-image: url(../../../../../../../Desktop/Dyekora%20Sumda%20Web/images/Button.gif);
}
/* Menu item containers are same fixed width as parent */
ul.MenuBarHorizontal ul li
{
    width: 12em;
}
/* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
ul.MenuBarHorizontal ul ul
{
    position: absolute;
    margin: -5% 0 0 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;
    padding: 0.5em 0.75em;
    color: #00CC33;
    text-decoration: none;
    font-family: "Trebuchet MS";
    background-image: url(../../../../../../../Desktop/Dyekora%20Sumda%20Web/images/Button.gif);
    background-repeat: no-repeat;
}
/* Menu items that have mouse over or focus have a blue background and white text */
ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
{
    color: #00CC33;
    font-family: "Trebuchet MS";
    background-image: url(../../../../../../../Desktop/Dyekora%20Sumda%20Web/images/Hover%20button.gif);
    background-color: #FFCCFF;
}
/* 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
{
    color: #00CC33;
    font-family: "Trebuchet MS";
    background-image: url(../../../../../../../Desktop/Dyekora%20Sumda%20Web/images/Hover%20button.gif);
    background-color: #FFCCFF;
}

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

 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;
__________________________________________________ _______________________

I look forward to any info you can give. Thanks again,

designer mama

Last edited by Corrosive; 10-09-2008 at 05:10 PM..
designer mama is offline   Reply With Quote
Old 10-10-2008, 02:20 PM   #2
designer mama
 
Join Date: Oct 2008
Posts: 2
Talking Issues SOLVED!!!

Greetings everyone,

After extensive searching on the net, I found the answer I was looking for. When creating a SPRY Menu, make sure there are NO <div></div> tags around any of your Menu items. For example, if you want the menu title to be centered or left aligned in the SPRY menu bar, do it from the SPRY CSS, not from the Properties Section.

Dyekorasumda.com is now perfect!!

Best regards,
designer mama
designer mama is offline   Reply With Quote
Old 10-10-2008, 02:30 PM   #3
domedia
Administrator
domedia's Avatar
 
Join Date: Dec 2003
Posts: 9,730
Default

Glad you got it solved designermama, and thanks for posting the solution as well for others finding this thread having the same problem
domedia is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:11 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com