Dreamweaver Club Forums

Dreamweaver Club Forums (http://www.dreamweaverclub.com/forum//index.php)
-   Spry (http://www.dreamweaverclub.com/forum//forumdisplay.php?f=189)
-   -   Spry Menubar 2.0 unstyled in IE6 & 7 (http://www.dreamweaverclub.com/forum//showthread.php?t=43272)

mochalany 07-23-2012 01:26 PM

Spry Menubar 2.0 unstyled in IE6 & 7
 
Hi, I'm quite new to Dreamweaver and I'm having some problems getting my menu bar to display correctly in IE6 and 7. It works fine in all other browsers but appears as blank text in those two. If anyone could tell me where I've gone wrong I'd be very grateful.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Moira Gavin</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<script type="text/javascript"></script>
<script src="../Spry-UI-1.7/includes/SpryDOMUtils.js" type="text/javascript"></script>
<script src="../Spry-UI-1.7/includes/SpryDOMEffects.js" type="text/javascript"></script>
<script src="../Spry-UI-1.7/includes/SpryWidget.js" type="text/javascript"></script>
<script src="../Spry-UI-1.7/includes/SpryMenu.js" type="text/javascript"></script>
<script src="../Spry-UI-1.7/includes/plugins/MenuBar2/SpryMenuBarKeyNavigationPlugin.js" type="text/javascript"></script>
<script src="../Spry-UI-1.7/includes/plugins/MenuBar2/SpryMenuBarIEWorkaroundsPlugin.js" type="text/javascript"></script>
<link rel="shortcut icon" href="../favicon.ico" />
<meta name="msvalidate.01" content="2B8032F18B7948C20D26D7087D930654" />
<link href="../Styles/moira_cs5.css" rel="stylesheet" type="text/css" />
<title>Moira Gavin</title>
<script type="text/javascript">var switchTo5x=true;</script>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">stLight.options({publisher: "ur-7c4eb028-ec2-aea5-3e1b-71a3bbd93170"}); </script>
<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-33541276-1']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script>
<link href="../Spry-UI-1.7/css/Menu/basic/SpryMenuBasic.css" rel="stylesheet" type="text/css" />
<style type="text/css">
/* BeginOAWidget_Instance_2141544: #MenuBar */
/* Settable values for skinning a Basic menu via presets. If presets are not sufficient, most skinning should be done in
these rules, with the exception of the images used for down or right pointing arrows, which are in the file SpryMenuBasic.css

These assume the following widget classes for menu layout (set in a preset)
.MenuBar - Applies to all menubars - default is horizontal bar, all submenus are vertical - 2nd level subs and beyond are pull-right.
.MenuBarVertical - vertical main bar; all submenus are pull-right.

You can also pass in extra classnames to set your desired top level menu bar layout. Normally, these are set by using a preset.
They only apply to horizontal menu bars:
MenuBarLeftShrink - The menu bar will be horizontally 'shrinkwrapped' to be just large enough to hold its items, and left aligned
MenuBarRightShrink - Just like MenuBarLeftShrink, but right aligned
MenuBarFixedLeft - Fixed at a specified width set in the rule '.MenuBarFixedLeft', and left aligned.
MenuBarFixedCentered - - Fixed at a specified width set in the rule '.MenuBarFixedCentered',
and centered in its parent container.
MenuBarFullwidth - Grows to fill its parent container width.

In general, all rules specified in this file are prefixed by #MenuBar so they only apply to instances of the widget inserted along
with the rules. This permits use of multiple MenuBarBasic widgets on the same page with different layouts. Because of IE6 limitations,
there are a few rules where this was not possible. Those rules are so noted in comments.

*/

#MenuBar {
background-color:#adb9c2;
font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif; /* Specify fonts on on MenuBar and subMenu MenuItemContainer, so MenuItemContainer,
MenuItem, and MenuItemLabel
at a given level all use same definition for ems.
Note that this means the size is also inherited to child submenus,
so use caution in using relative sizes other than
100% on submenu fonts. */
font-weight: normal;
font-size: 14px;
font-style: normal;
padding:0;
border-color: #ffffff #ffffff #ffffff #ffffff;
border-width:0px;
border-style: none none none none;
}
/* Caution: because ID+class selectors do not work properly in IE6, but we want to restrict these rules to just this
widget instance, we have used string-concatenated classnames for our selectors for the layout type of the menubar
in this section. These have very low specificity, so be careful not to accidentally override them. */

.MenuBar br { /* using just a class so it has same specificity as the ".MenuBarFixedCentered br" rule bleow */
display:none;
}
.MenuBarLeftShrink {
float: left; /* shrink to content, as well as float the MenuBar */
width: auto;
}
.MenuBarRightShrink {
float: right; /* shrink to content, as well as float the MenuBar */
width: auto;
}
.MenuBarFixedLeft {
float: left;
width: 80em;
}
.MenuBarFixedCentered {
float: none;
width: 80em;
margin-left:auto;
margin-right:auto;
}
.MenuBarFixedCentered br {
clear:both;
display:block;
}
.MenuBarFixedCentered .SubMenu br {
display:none;
}
.MenuBarFullwidth {
float: left;
width: 100%;
}
/* Top level menubar items - these actually apply to all items, and get overridden for 1st or successive level submenus */
#MenuBar .MenuItemContainer {
padding: 0px 0px 0px 0px;
margin: 0; /* Zero out margin on the item containers. The MenuItem is the active hover area.
For most items, we have to do top or bottom padding or borders only on the MenuItem
or a child so we keep the entire submenu tiled with items.
Setting this to 0 avoids "dead spots" for hovering. */
}
#MenuBar .MenuItem {
padding: 0.5em 1.464em 0.5em 0.75em;
background-color:#adb9c2;
border-width:0px;
border-color: #cccccc #ffffff #cccccc #ffffff;
border-style: none solid none solid;
outline: none;
}
#MenuBar .MenuItemFirst {
border-style: none none none none;
}
#MenuBar .MenuItemLast {
border-style: none solid none none;
}
#MenuBar .MenuItem .MenuItemLabel {
text-align:center;
line-height:1.4em;
color:#000000;
background-color:#adb9c2;
padding: 0px 0px 0px 0px;
width: 10em;
width:auto;
}
.SpryIsIE6 #MenuBar .MenuItem .MenuItemLabel {
width:1em; /* Equivalent to min-width in modern browsers */
}
/* First level submenu items */
#MenuBar .SubMenu .MenuItem {
font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
font-weight: normal;
font-size: 14px;
font-style: normal;
background-color:#ced7de;
padding:0.5em 0.75em 0.5em 0.75em;
border-width:0px;
border-color: #cccccc #cccccc #cccccc #cccccc;
/* Border styles are overriden by first and last items */
border-style: solid solid none solid;
}
#MenuBar .SubMenu .MenuItemFirst {
border-style: solid solid none solid;
}
#MenuBar .SubMenu .MenuItemFirst .MenuItemLabel {
padding-top: 0px;
}
#MenuBar .SubMenu .MenuItemLast {
border-style: solid solid solid solid;
}
#MenuBar .SubMenu .MenuItemLast .MenuItemLabel {
padding-bottom: 0px;
}
#MenuBar .SubMenu .MenuItem .MenuItemLabel {
text-align:left;
line-height:1em;
background-color:#ced7de;
color:#000000;
padding: 0.5em 0px 0px 0px;
width: 7em;
width:auto;
}
/* Hover states for containers, items and labels */
#MenuBar .MenuItemHover {
background-color: #ced7de;
border-color: #cccccc #cccccc #cccccc #cccccc;
}
#MenuBar .MenuItemWithSubMenu.MenuItemHover .MenuItemLabel {
background-color: #ced7de; /* consider exposing this prop separately*/
color: #ffffff;
}
#MenuBar .MenuItemHover .MenuItemLabel {
background-color: #ced7de;
color: #ffffff;
}
#MenuBar .SubMenu .MenuItemHover {
background-color: #ced7de;
border-color: #cccccc #cccccc #cccccc #cccccc;
}
#MenuBar .SubMenu .MenuItemHover .MenuItemLabel {
background-color: #ced7de;
color: #ffffff;
}
/* Submenu properties -- First level of submenus */
#MenuBar .SubMenuVisible {
background-color: #ced7de;
min-width:0%; /* This keeps the menu from being skinnier than the parent MenuItemContainer - nice to have but not available on ie6 */
border-color: #ffffff #ffffff #ffffff #ffffff;
border-width:0px;
border-style: none none none none;
}
#MenuBar.MenuBar .SubMenuVisible {/* For Horizontal menubar only */
top: 100%; /* 100% is at the bottom of parent menuItemContainer */
left:0px; /* 'left' may need tuning depending upon borders or padding applied to menubar MenuItemContainer or MenuItem,
and your personal taste.
0px will left align the dropdown with the content area of the MenuItemContainer. Assuming you keep the margins 0
on MenuItemContainer and MenuItem on the parent
menubar, making this equal the sum of the MenuItemContainer & MenuItem padding-left will align
the dropdown with the left of the menu item label.*/
z-index:10;
}
#MenuBar.MenuBarVertical .SubMenuVisible {
top: 0px;
left:100%;
min-width:0px; /* Do not neeed to match width to parent MenuItemContainer - items will prevent total collapse */
}
/* Submenu properties -- Second level submenu and beyond - these are visible descendents of .MenuLevel1 */
#MenuBar .MenuLevel1 .SubMenuVisible {
background-color: #ced7de;
min-width:0px; /* Do not neeed to match width to parent MenuItemContainer - items will prevent total collapse*/
top: 0px; /* If desired, you can move this down a smidge to separate top item''s submenu from menubar -
that is really only needed for submenu on first item of MenuLevel1, or you can make it negative to make submenu more
vertically 'centered' on its invoking item */
left:100%; /* If you want to shift the submenu left to partially cover its invoking item, you can add a margin-left with a
negative value to this rule. Alternatively, if you use fixed-width items, you can change this left value
to use px or ems to get the offset you want. */
}
/* IE6 rules - you can delete these if you do not want to support IE6 */

/* A note about multiple classes in IE6.
* Some of the rules above use multiple class names on an element for selection, such as "hover" (MenuItemHover) and "has a subMenu" (MenuItemWithSubMenu),
* giving the selector '.MenuItemWithSubMenu.MenuItemHover'.
* Unfortunately IE6 does not support using mutiple classnames in a selector for an element. For a selector such as '.foo.bar.baz', IE6 ignores
* all but the final classname (here, '.baz'), and sets the specificity accordingly, counting just one of those classs as significant. To get around this
* problem, we use the plugin in SpryMenuBarIEWorkaroundsPlugin.js to generate compound classnames for IE6, such as 'MenuItemWithSubMenuHover'.
* Since there are a lot of these needed, the plugin does not generate the extra classes for modern browsers, and we use the CSS2 style mutltiple class
* syntax for that. Since IE6 both applies rules where
* it should not, and gets the specificity wrong too, we have to order rules carefully, so the rule misapplied in IE6 can be overridden.
* So, we put the multiple class rule first. IE6 will mistakenly apply this rule. We follow this with the single-class rule that it would
* mistakenly override, making sure the misinterpreted IE6 specificity is the same as the single-class selector, so the latter wins.
* We then create a copy of the multiple class rule, adding a '.SpryIsIE6' class as context, and making sure the specificity for
* the selector is high enough to beat the single-class rule in the "both classes match" case. We place the IE6 rule at the end of the
* css style block to make it easy to delete if you want to drop IE6 support.
* If you decide you do not need IE6 support, you can get rid of these, as well as the inclusion of the SpryMenuBarIEWorkaroundsPlugin.js script.
* The 'SpryIsIE6' class is placed on the HTML element by the script in SpryMenuBarIEWorkaroundsPlugin.js if the browser is Internet Explorer 6. This avoids the necessity of IE conditional comments for these rules.
*/
.SpryIsIE6 #MenuBar .MenuBarView .MenuItemWithSubMenuHover .MenuItemLabel /* IE6 selector */ {
background-color: #ced7de; /* consider exposing this prop separately*/
color: #ffffff;
}
.SpryIsIE6 #MenuBar .MenuBarView .SubMenu .MenuItemWithSubMenuHover .MenuItemLabel/* IE6 selector */ {
background-color: #ced7de; /* consider exposing this prop separately*/
color: #ffffff;
}
.SpryIsIE6 #MenuBar .SubMenu .SubMenu /* IE6 selector */ {
margin-left: -0.75em; /* Compensates for at least part of an IE6 "double padding" version of the "double margin" bug */
}


/* EndOAWidget_Instance_2141544 */
</style>
<script type="text/xml">
<!--
<oa:widgets>
<oa:widget wid="2141544" binding="#MenuBar" />
</oa:widgets>
-->
</script>
<link href="../Styles/spry2.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="container0">
<h1>Moira Gavin </h1>
<div id="banner"> <a href="../index.html"><img src="../Images/Home/Moira Gavin.jpg" alt="Moira Gavin" width="200" height="36" border="0" /></a> </div>
</div>
<div id="container">
<div id="menu">
<ul id="MenuBar">
<li> <a href="../current_work.html">Current Work</a></li>
<li> <a href="#">Projects</a>
<ul>
<li> <a href="../projects/bindings.html">Bindings</a></li>
<li> <a href="../projects/Orphan.html">Orphans</a>
<ul>
<li> <a href="../projects/Orphans/Orphan_house.html">Orphan House</a></li>
<li> <a href="../projects/Orphans/Orphan_clothes.html">Orphan Clothes</a></li>
<li> <a href="../projects/Orphans/Orphan_archive.html">Orphan Archive</a></li>
</ul>
</li>
<li> <a href="../projects/bristol_north.html">Bristol North</a></li>
<li> <a href="../projects/bristol_crown_court.html">Crown Court</a></li>
<li> <a href="../projects/films.html">Living In A Material World</a></li>
</ul>
</li>
<li> <a href="../about.html">About</a></li>
<li> <a href="../contact.html">Contact Details</a></li>
</ul>
</li>
</ul>
<script type="text/javascript">
// BeginOAWidget_Instance_2141544: #MenuBar
var MenuBar = new Spry.Widget.MenuBar2("#MenuBar", {
widgetID: "MenuBar",
widgetClass: "MenuBar MenuBarLeftShrink",
insertMenuBarBreak: true,
});
// EndOAWidget_Instance_2141544
</script>
</div>
<div id="content"><!-- TemplateBeginEditable name="content" -->
<h2>Heading 1</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent nec risus metus; vel feugiat erat? Phasellus eget mi quis ante faucibus tincidunt! Fusce sed quam quis tellus molestie convallis ut in lorem. Etiam elit nibh, sagittis in vehicula non, dignissim ac lacus. Suspendisse potenti. Nulla facilisi. Ut eget orci justo. Nullam euismod elementum nisl ut imperdiet. Integer fringilla porttitor commodo. Pellentesque iaculis egestas ornare. Etiam nec diam scelerisque magna interdum egestas a ut magna. Quisque vitae turpis ut augue hendrerit pellentesque fermentum ac ipsum. Cras sed arcu dolor, vitae scelerisque diam.</p>
<p>&nbsp;</p>
<!-- TemplateEndEditable --></div>
<div id="footer"> <span class='st_facebook'></span> <span class='st_twitter'></span> <span class='st_stumbleupon'></span> <span class='st_tumblr'></span> <span class='st_pinterest'></span> <span class='st_email'></span>
<p id="copyright"> Moira Gavin 2012</p>
</div>
</div>
<script type="text/javascript">
var MenuBar1 = new Spry.Widget.MenuBar
</script>
</body>
</html>


All times are GMT. The time now is 12:01 PM.

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