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 12-02-2013, 11:49 AM   #1
philcart
 
Join Date: Dec 2013
Posts: 2
Default Spry submenu unstable

Hi,
I'm new to this forum, so hope someone can solve my problem.
The site in question is www.whittingtonchurch.co.uk The Contacts submenus work fine, but when hovering over the lower submenu buttons from Services, Vicar, etc you don't get the hand symbol to enable you to click them, and they tend to flicker. This happens in both IE and Chrome.

Here is the menu CSS -

@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.MenuBarHorizontal
{
list-style-type: none;
font-size: smaller;
cursor: default;
width: 957px;
font-style: normal;
font-weight: bolder;
background-color: #3857F0;
bottom: auto;
height: auto;
padding-left: 1px;
vertical-align: bottom;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
padding-right: 0px;
padding-bottom: 0px;
margin-top: 0px;
position: absolute;
}
/* 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
{
list-style-type: none;
font-size: 100%;
text-align: left;
cursor: pointer;
width: 93px;
float: left;
background-color: #3875F0;
margin-top: 0px;
padding-top: 0px;
height: auto;
z-index: auto;
margin-right: 1px;
margin-bottom: 1px;
margin-left: 1px;
padding-right: 0;
padding-bottom: 0;
padding-left: 0;
position: relative;
}
/* 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: auto;
position: absolute;
left: -1000em;
background-color: #6F7D94;
text-align: left;
}
/* 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;
background-color: #3857F0;
background-repeat: no-repeat;
list-style-type: none;
}
/* Menu item containers are same fixed width as parent */
ul.MenuBarHorizontal ul li
{
width: 8.2em;
background-color: #6F7D94;
}
/* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
ul.MenuBarHorizontal ul ul
{
position: absolute;
margin: -5% 0 0 95%;
background-color: #6F7D94;
}
/* 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;
background-color: #3C5AF0;
padding: 0em 0em;
color: #000;
text-decoration: none;
border-top-color: #6E8B3D;
border-right-color: #6E8B3D;
border-bottom-color: #6E8B3D;
border-left-color: #6E8B3D;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
border-top-width: thin;
border-right-width: thin;
border-bottom-width: thin;
border-left-width: thin;
}
/* Menu items that have mouse over or focus have a blue background and white text */
ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
{
background-color: #3857F0;
color: #FFF;
position: static;
}
/* 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: #3857F0;
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(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%;
position: relative;
}
/* 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;
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;
}
}

And here is the menubar code itself -

<body>
<div class="container">
<div class="header"><!-- end .header -->
<div id="apDiv8">
<ul id="MenuBar1" class="MenuBarHorizontal">
<li><a href="Home.html">Home</a></li>
<li><a href="#" class="MenuBarItemSubmenu">Contacts</a>
<ul>
<li><a href="Whitt-Team.html">Whittington Team</a></li>
<li><a href="WorcsSETeam.html">Worcs SE Team</a></li>
</ul>
</li>
<li><a href="Diary-2.html">Diary</a></li>
<li><a href="#" class="MenuBarItemSubmenu">Services</a>
<ul>
<li><a href="SundayWorship.html">Sunday Worship</a></li>
<li><a href="SpecialServices.html">Special Services</a></li>
</ul>
</li>
<li><a href="Map.html">Find Us</a></li>
<li><a href="#" class="MenuBarItemSubmenu">Vicar</a>
<ul>
<li><a href="VicarLetter.html">Letter</a></li>
<li><a href="AboutVicar.html">About Me</a></li>
</ul>
</li>
<li><a href="Photo Gallery.html">Pictures</a></li>
<li><a href="#" class="MenuBarItemSubmenu">Church</a>
<ul>
<li><a href="Churchyard.html">Churchyard</a></li>
<li><a href="Church-Hstory.html">History</a></li>
</ul>
</li>
<li><a href="#" class="MenuBarItemSubmenu">Links</a>
<ul>
<li><a href="OtherChurches.html">Team Churches</a></li>
<li><a href="OtherLinks.html">General</a></li>
</ul>
</li>
<li><a href="#" class="MenuBarItemSubmenu">Locale</a>
<ul>
<li><a href="Village-Hstory.html">Village</a></li>
<li><a href="Personalities.html">Personalities</a></li>
</ul>
</li>
</ul>
</div>
</div>

Any help will be very much appreciated.

Cheers,

Phil
philcart is offline   Reply With Quote
Old 12-02-2013, 01:49 PM   #2
d a v e
 
Join Date: Feb 2006
Location: finland
Posts: 1,684
Default

Phil - to be honest i've never used the spry menus in dreamweaver - i have doubts about how good they really are

are you using an old version of dreamweaver (and possibly therefore an old version of the spry nav system?)

you may need to change cursor to pointer in the css for the submenu.
and also have a look at the z-indexes of menu items because the menu falls behind the main text heading and the church image

in latest firefox (on mac) i can only select the first item in the child menu and the text is messed up.

i wonder whether you have considered using a cms like wordpress and simply adapting one of the many free themes (or even the basic theme) because then the navigation is sorted for you automatically (simple case making a new page and telling wordpress where in the navigation you want it to appear) and it would also be responsive - assuming you use a responsive theme (which your site isn't at the moment)

using a cms would also help spread the load of editing content and make it easier to add images and articles, update news etc. and provide a typographical and layout framework for you without having to manage those things yourself (but which are of course customisable)

incidentally i hope you don't me mentiining but the black text on a blue background is hard to read (try white or off white) and it's better to use bold for emphasis rather than all the body text (good to see you're using 16px default size text though

I assume the church knows its own name but isn't the normal abbreviation for Saint simply St ? (because it's a contraction not an abbreviation?)

i realise this doesn't directly answer your question (unless it is simply a case of changing the cursor type in the css) but i wanted to point out some options that may help with some of the general aspects of site management and may help with editing content generally.

hmm looking again i think it is a z-index problem - the menu needs to come infront of the page content it drops down but then loses focus
d a v e is offline   Reply With Quote
Old 12-02-2013, 04:51 PM   #3
philcart
 
Join Date: Dec 2013
Posts: 2
Default

Dave,
Many thanks for the quick response. Re full stop after ST and font style and colour, they are what the client specified. I'm doing the site for them as a DW amateur as they've got no money, and my aspirations are currently outstripping my ability! My version of DW is CS5, so is probably out of date. I've just got a trial version of Xara, which at first sight looks much simpler. It's puzzling that some of the submenus work and others don't
Cheers,

Phil
philcart is offline   Reply With Quote
Old 12-02-2013, 04:53 PM   #4
d a v e
 
Join Date: Feb 2006
Location: finland
Posts: 1,684
Default

if i have time tomorrow i'll have another look at the menu..
d a v e is offline   Reply With Quote
Old 12-02-2013, 10:15 PM   #5
gentleone
gentleone's Avatar
 
Join Date: Nov 2009
Location: Rhodes, Greece
Posts: 2,837
Default

Remove the z-index from apDiv2 (which holds the title and little photo) in your CSS. It has a z-index of 1 so it's overlapping the sub menu items. You don't need that z-index anyway.
__________________
www.gentlemedia.nl
gentleone is offline   Reply With Quote
Old 12-03-2013, 05:56 AM   #6
d a v e
 
Join Date: Feb 2006
Location: finland
Posts: 1,684
Default

ok gentleone beat me too it thanks
d a v e is offline   Reply With Quote
Old 12-03-2013, 07:49 AM   #7
d a v e
 
Join Date: Feb 2006
Location: finland
Posts: 1,684
Default

oh ffs thanks for losing my post forum...

very quickly again:

- lose the bold copy text and consider using #333

- change nav text to a better contrast (think of all the old people in the church and others with poorer eyesight

- consider a more friendly font than the boring busines orientated cold arial font. verdana or tahoma e.g.

- lose the splash page: just an obstacle to getting to the content that's why no-one has been using them for years

- avoid using absolute positioning unless absolutyle (ouch) necessary

- putting naked emails is inviting spam - have a look at a form or at least use something like http://www.seowebsitepromotion.com/obfuscate_email.asp

- http://www.w3schools.com/ for help on html etc.

- you're using an old doctype (see above for help)

oh yeah nice pics in the gallery

Last edited by d a v e; 12-03-2013 at 07:57 AM..
d a v e is offline   Reply With Quote
Old 12-05-2013, 12:39 PM   #8
gentleone
gentleone's Avatar
 
Join Date: Nov 2009
Location: Rhodes, Greece
Posts: 2,837
Default

Quote:
Originally Posted by philcart View Post
I've just got a trial version of Xara, which at first sight looks much simpler.
I'd recommend to stay away from Xara, because if you let a piece of software write your code, then better let DW write it for you. The best is to learn and write it yourself, but Xara writes/outputs horrible code compared to DW.
__________________
www.gentlemedia.nl
gentleone is offline   Reply With Quote
Old 12-08-2013, 04:15 PM   #9
d a v e
 
Join Date: Feb 2006
Location: finland
Posts: 1,684
Default

i would still recommend wordpress for this. makes it easier as far as managing your navigation, forms, images and otherwise adding end editing content, oh and it would be responsive too (assuming you uised a modern responsive template)
d a v e is offline   Reply With Quote
Old 12-10-2013, 07:07 AM   #10
d a v e
 
Join Date: Feb 2006
Location: finland
Posts: 1,684
Default

and to make your loading times a bit more comfortable then resize and properly optimise the two images either side of the title heading (church and stained glass window) - they total >1mb!

if you need help with that i'd be happy to help
d a v e 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 11:55 PM.


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