Dreamweaver Club Forums

Dreamweaver Club Forums (http://www.dreamweaverclub.com/forum//index.php)
-   Spry (http://www.dreamweaverclub.com/forum//forumdisplay.php?f=189)
-   -   Vertical Spry Menu Problem in IE8 and IE9 (http://www.dreamweaverclub.com/forum//showthread.php?t=40296)

reillyjg 05-19-2011 02:08 AM

Vertical Spry Menu Problem in IE8 and IE9
 
Hello, My vertical spry menu doesn't display properly in IE8 and IE9 but works in other browsers. Any suggestions to correct the error would be appreciated!
------code below--------
@charset "UTF-8";


ul.MenuBarVertical li.MenuBarItemIE {
display:inline;
float:left;
background:#FFF
}
}

ul.MenuBarVertical {
list-style-type:none;
font-size:100%;
cursor:default;
width:10em;
border:1px solid #630;
margin:0;
padding:0
}

ul.MenuBarActive {
z-index:1000
}

ul.MenuBarVertical li {
list-style-type:none;
font-size:100%;
position:relative;
text-align:left;
cursor:pointer;
width:10em;
margin:0;
padding:0
}

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

ul.MenuBarVertical ul.MenuBarSubmenuVisible {
left:0
}

ul.MenuBarVertical ul li {
width:10.2em
}

ul.MenuBarVertical a {
display:block;
cursor:pointer;
background-color:#963;
background-image:url(../images/Button.jpg);
color:#300;
text-decoration:none;
background-repeat:no-repeat;
background-position:95% 50%;
padding:0.5em 0.75em
}

ul.MenuBarVertical a.MenuBarItemSubmenu {
background-image:url(../images/Buttonright.jpg);
background-repeat:no-repeat;
background-position:95% 50%
}

ul.MenuBarVertical a.MenuBarItemSubmenuHover {
background-image:url(../images/ButtonHover.jpg);
background-repeat:no-repeat;
color:#FFF;
background-position:95% 50%
}

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.MenuBarHorizontal li.MenuBarItemIE
{
display: inline;
f\loat: left;
background: #FFF;
}
}

DWcourse 05-19-2011 02:57 AM

This might not be the whole issue but I suspect your problem starts here:

Code:

ul.MenuBarVertical li.MenuBarItemIE {
display:inline;
float:left;
background:#FFF
}
}

Why did you move that to the top of the style sheet and why do you have an extra closing bracket there?

reillyjg 05-19-2011 03:51 AM

Hi, Thanks for looking at this! I changed the code (see below) and still it has the same problem. The image for each link seems to want to overlap itself.
I created it in CS4.
I am stumped.
--------------new code---------
@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
{
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
cursor: default;
width: 10em;
}
/* 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: 100%;
position: relative;
text-align: left;
cursor: pointer;
width: 10em;
}
/* 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: 10em;
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: 10em;
}

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

DESIGN INFORMATION: describes color scheme, borders, fonts

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

/* Outermost menu container has borders on all sides */
ul.MenuBarVertical
{
border: 1px solid #663300;
}
/* Submenu containers have borders on all sides */
ul.MenuBarVertical ul
{
border: 1px solid #663300;
}
/* Menu items are a light gray block with padding and no text decoration */
ul.MenuBarVertical a
{
display: block;
cursor: pointer;
background-color: #996633;
padding: 0.5em 0.75em;
background-image: url(../images/Button.jpg);
color: #330000;
text-decoration: none;
background-repeat: no-repeat;
background-position: 95% 50%;


}
/* 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: #33C;*/
background-image: url(../images/ButtonHover.jpg);
background-repeat: no-repeat;
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: #33C;*/
background-image: url(../images/ButtonHover.jpg);
background-repeat: no-repeat;
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(../images/Buttonright.jpg);
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(../images/ButtonHover.jpg);
background-repeat: no-repeat;
color: #FFF
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;
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;
}
}

DWcourse 05-19-2011 03:54 AM

if you can post the page somewhere and give me a link, I'll take a look

reillyjg 05-19-2011 03:59 AM

Hi,
Thank you in advance! This is my first site with Dreamweaver and its spry menus. www.pack1020.com

DWcourse 05-19-2011 04:35 AM

That new CSS code you posted is not the CSS code that is currently posted. I still see the old code.

Corrosive 05-19-2011 07:35 AM

Moved to Spry board

reillyjg 05-19-2011 04:26 PM

Hi, Sorry. It should be there now. I added this to <head> to get it working:
<!-- Use IE7 mode -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
Still would prefer to know what's causing it, though. :) Thanks again!

22 Gears 01-06-2012 10:56 PM

IE 8 issue also
 
I am having a similar issue and its making me crazy. My spry dropdowns dont work in IE 8. They work in FF and safari.

http://www.tgei.net/Dentist/meet.html

Please help I've tried everything.

Thanks Steve


All times are GMT. The time now is 02:15 PM.

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