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 04-02-2012, 06:53 PM   #1
sydesign
 
Join Date: Jan 2011
Posts: 41
Default Spry Menu Bar Horizontal Dropdown issue

I have a horizontal spry menu bar on my site and decided to have it only on one of the tabs of my navigation because i only needed one drop down and i had the tabs as images already. my friend who uses a PC ( i use a mac) on his internet explorer said that when you go over the tab it drops down from the top of the browser window and not under the actual tab.

I'm not too sure if i may have messed up something with the code when i was playing with it or not. but here is my code i appreciate any help. thank you!

Code:
@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: describes box model, positioning, z-order

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

/* The outermost container of the Menu Bar, an auto width box with no margin or padding */
ul.MenuBarHorizontal2
{
	margin: 0;
	padding: 0;
	list-style-type: none;
	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.MenuBarHorizontal2 li
{
	margin: 0;
	padding: 0;
	list-style-type: none;
	position: relative;
	text-align: left;
	cursor: pointer;
	width: 160px;
	float: left;
}
/* 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.MenuBarHorizontal2 ul
{
	margin: 0;
	padding: 0;
	list-style-type: none;
	font-size: 100%;
	z-index: 1020;
	cursor: default;
	width: 160px;
	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.MenuBarHorizontal2 ul.MenuBarSubmenuVisible
{
	left: auto;
	font-size: 12px;
}
/* Menu item containers are same fixed width as parent */
ul.MenuBarHorizontal2 ul li
{
	width: 160px;
	background-image: url(../images/images/newtabs2_04.png);
}
/* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
ul.MenuBarHorizontal2 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.MenuBarHorizontal2 ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
{
	left: auto;
	top: 0;
	background-image: url(../images/images/images/newtabs2_02.png);
	background-repeat: no-repeat;
}

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

 DESIGN INFORMATION: describes color scheme, borders, fonts

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

/* Submenu containers have borders on all sides */
ul.MenuBarHorizontal2 ul
{
	border: 1px solid #CCC;
}
/* Menu items are a light gray block with padding and no text decoration */
ul.MenuBarHorizontal2 a
{
	display: block;
	cursor: pointer;
	color: #333;
	text-decoration: none;
	padding-top: 10px;
	padding-right: 0.75em;
	padding-bottom: 10px;
	padding-left: 0.75em;
}
/* Menu items that have mouse over or focus have a blue background and white text */
ul.MenuBarHorizontal2 a:hover, ul.MenuBarHorizontal a:focus
{
	color: #FFF;
	background-repeat: no-repeat;
	background-position: center center;
	background-color: #666;
}

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

 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.MenuBarHorizontal2 a.MenuBarItemSubmenu2
{
	background-image: url(SpryMenuBarDown.gif);
	background-repeat: no-repeat;
	background-position: 95% 50%;
	color: #FFF;
}
ul.MenuBarHorizontal2 a.MenuBarItemSubmenu3
{
	background-image: url(SpryMenuBarDown.gif);
	background-repeat: no-repeat;
	background-position: 95% 50%;
	color: #333;
}
/* 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.MenuBarHorizontal2 ul a.MenuBarItemSubmenu2
{
	background-image: url(../images/images/newtabs2_over_04.png);
	background-repeat: no-repeat;
	background-position: center top;
}
/* 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.MenuBarHorizontal2 a.MenuBarItemSubmenuHover
{
	background-image: url(../images/images/newtabs2_over_04.png);
	background-repeat: no-repeat;
	background-position: center top;
}
/* 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.MenuBarHorizontal2 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.MenuBarHorizontal2 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.MenuBarHorizontal2 li.MenuBarItemIE
	{
		display: inline;
		f\loat: left;
		background: #FFF;
	}
}
HTML Code:
<ul id="MenuBar2" class="MenuBarHorizontal2">
          <li style="background-image:url(images/images/newtabs2_04.png);"><a class="MenuBarItemSubmenu2" href="resources.html">&nbsp;</a>
            <ul>
              <li style="background:#f0f0f0;"><a href="apologetics.html">Apologetics Page</a></li>
              <li style="background:#f0f0f0;"><a class="MenuBarItemSubmenu3" href="#">Commentaries</a>
                <ul>
                  <li style="background:#f0f0f0;"><a class="MenuBarItemSubmenu3" href="galatians1.html">Galatians</a>
                    <ul>
                      <li style="background:#f0f0f0;"><a href="galatians1.html">Galatians 1</a></li>
                      <li style="background:#f0f0f0;"><a href="galatians2.html">Galatians 2</a></li>
                      <li style="background:#f0f0f0;"><a href="galatians3.html">Galatians 3</a></li>
                      <li style="background:#f0f0f0;"><a href="galatians4.html">Galatians 4</a></li>
                      <li style="background:#f0f0f0;"><a href="galatians5.html">Galatians 5</a></li>
                      <li style="background:#f0f0f0;"><a href="galatians6.html">Galatians 6</a></li>
                    </ul>
                  </li>
                  <li style="background:#f0f0f0;"><a href="second-john.html">Second John</a></li>
                  <li style="background:#f0f0f0;"><a href="third-john.html">Third John</a></li>
                </ul>
              </li>
              <li style="background:#f0f0f0;"><a href="#" class="MenuBarItemSubmenu3">Archives</a>
                <ul>
                  <li style="background:#f0f0f0;"><a href="archives/versebyverse.html">Verse by Verse</a></li>
                  <li style="background:#f0f0f0;"><a href="archives/doctrine.html">Doctrine</a></li>
                  <li style="background:#f0f0f0;"><a href="archives/apologetics.html">Apologetics</a></li>
                  <li style="background:#f0f0f0;"><a href="archives/churchhistory.html">Church History</a></li>
                  <li style="background:#f0f0f0;"><a href="archives/finances.html">Biblical Finances</a></li>
                </ul>
              </li>
            </ul>
          </li>
        </ul>
sydesign 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 06:19 PM.


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