Spry Menu Bar Background Image

Background Image not appearing when previewing in Web Browser

Page 1 of 1

3 Replies - 9017 Views - Last Post: 23 May 2009 - 07:56 AM

#1 pdbader  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 20-May 09

Spry Menu Bar Background Image

Post icon  Posted 21 May 2009 - 11:26 AM

I am using a Spry Horizontal Drop down menu for my site and am having some problems with the background image. It shows in Dreamweaver but on the webbrowser. I assume it is something simple that i am missing. Attached is the Spry CSS and the Index.html please help in any way you can. Thanks!

@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;
	list-style-type: none;
	font-size: 100%;
	cursor: default;
	width: auto;
	padding: 0;
}
/* 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;
	list-style-type: none;
	font-size: 16pt;
	position: relative;
	text-align: center;
	cursor: pointer;
	width: 8.65em;
	float: left;
	height: 2px;
	font-family: Copperplate;
	padding: 0;
	color: #333333;
}
/* 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;
	list-style-type: none;
	font-size: 100%;
	z-index: 1020;
	cursor: default;
	width: 8.2em;
	position: absolute;
	left: -1000em;
	padding-top: 0;
	padding-right: 0;
	padding-bottom: 0;
	padding-left: 0;
}
/* 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: 8.2em;
}
/* 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;
	color: #333;
	text-decoration: none;
	background-image: url(/Images/menubar4.jpg);
	background-repeat: repeat-x;
	padding: 0.1em;
}
/* Menu items that have mouse over or focus have a blue background and white text */
ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
{
	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(/Images/menubar4.jpg);
	background-repeat: repeat-x;
	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;
	}
}



<!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" />
<title>Advent Medical Technologies</title>
<style type="text/css">
<!--
-->
</style>
<link href="main.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
	background-color: #1a628b;
	background-image: url();
	background-repeat: no-repeat;
}
.style1 {font-family: Verdana, Arial, Helvetica, sans-serif}
.style2 {
	font-size: 18px;
	font-weight: bold;
	color: #1a628b;
}
.style4 {
	font-size: 12px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
.style6 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
}
-->
</style>
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style7 {
	font-family: Copperplate;
	font-size: 16pt;
}
-->
</style>
</head>

<body>
<div id="outerglow">
  <div id="wrapper">
	<div id="header">
	  <div id="logo"><img src="Images/Header.jpg" alt="" name="Logo" width="740" height="198" id="Logo" /></div>
	  <div id="nav">
		<ul id="MenuBar1" class="MenuBarHorizontal">
		  <li><a href="#" class=" style7">Home</a>			</li>
		  <li><a href="#">About Us</a></li>
		  <li><a class="MenuBarItemSubmenu" href="#">Products</a>
			  <ul>
				<li><a href="#">Koala Klip</a> </li>
				<li><a href="#">Thermal Ear</a></li>
				<li><a href="#">Prophyease</a></li>
			</ul>
		  </li>
		  <li><a href="#" class="MenuBarItemSubmenu">Contact</a>
			<ul>
			  <li><a href="#">Product Info</a></li>
			  <li><a href="#">Company Info</a></li>
			</ul>
		  </li>
		</ul>
	  </div>
	</div>
	<div id="text">
	  <blockquote>
		<p align="left" class="style1"><span class="style2">Welcome to Advent Medical Technologies</span><br />
		  <br />
		  At Advent Medical Technologies, we know that quality medical and dental care begins with safe, effective, and innovative tools in the hands of professionals.  As treatment changes to incorporate new technologies patient care improves. <br />
		</p>
		<p align="left" class="style1">The medical and dental professionals and their practices are the front line defense to health.  Every year these professionals require quality products that are safe and reliable to save countless lives worldwide. <br />
		</p>
		<p align="left" class="style1">At Advent Medical Technologies we find new ways to help physicians and nurses work more proficiently to improve patient care.  We develop innovative medical and dental technologies that lead the market in quality, safety and reliabilit</p>
	  </blockquote>
	</div>
	<div id="content">
	  <div id="leftcolumn">
		<div align="left">
		  <blockquote>
			<p><img src="Images/events.png" width="200" height="25" /><br />  
			  <span class="style6"> Advent medical will be at the following events:</span><br />
			  <span class="style4"><br />
			  <strong>August 12-14 </strong>- <a href="http://www.fimeshow.com/">FIME 2009</a>  Miami Beach, FL</span><br />
			</p>
		  </blockquote>
		</div>
	  </div>
	  <div id="rightcolumn">
		<p><img src="Images/news.png" width="200" height="25" /></p>
		<p class="style1">No Recent News...</p>
	  </div>
	</div>
	<div id="footer">
	  <p>&nbsp;</p>
	  <p>&nbsp;</p>
	  <p>&nbsp;</p>
	  <p>&nbsp;</p>
	  <p><img src="Images/footer.jpg" width="740" height="200" /></p>
	</div>
  </div>
</div>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"/SpryAssets/SpryMenuBarDownHover.gif", imgRight:"/SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
</html>



Is This A Good Question/Topic? 0
  • +

Replies To: Spry Menu Bar Background Image

#2 pdbader  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 20-May 09

Re: Spry Menu Bar Background Image

Posted 21 May 2009 - 01:48 PM

i am also seeing that the drop down menus are also crammed together and i cant figure out how to change this.

Thanks
Was This Post Helpful? 0
  • +
  • -

#3 pdbader  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 20-May 09

Re: Spry Menu Bar Background Image

Posted 21 May 2009 - 04:18 PM

alright i figured out the problem with the images but i am still having the same problem with the drop down ones, and the submenus are condense together... not sure what caused this please help if you can
Was This Post Helpful? 0
  • +
  • -

#4 crazyjugglerdrummer  Icon User is offline

  • GAME OVER. NERD WINS.
  • member icon

Reputation: 119
  • View blog
  • Posts: 690
  • Joined: 07-January 09

Re: Spry Menu Bar Background Image

Posted 23 May 2009 - 07:56 AM

I didn't look through the code that closely but do you just need to add some margins?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1