Horizontal hover menus alignment

Thanks to Ben, who very pointedly said "you need help" I attempt to explain my frustrations and limitations using horizontal menu bars.
The following template, uses only div's, but my tech friends say it doesn't align up in all browsers: {are there supposed to be the wide white margins around it?  I can try setting the header up as a table so things stay in place and it
works at all screen widths.} Chris Bizynet
http://musicnotes.net/Jess
(It is frustrating to work with a design that doesn't look the same in DW as it will in a browser - i.e., the white space to the left of the red menu bar)
So,my tech friend rebuilt the template using (sorry to say) tables and cells, with the intention to keep the drop-down menus to stay in place:
http://musicnotes.net/MNI2010/2010/index.html
Most alignment issues were resolved, save IE 8.0, where the hover menus overlap the main drop-down menu. (see below)  However, this is the final look I would like to have, note the Join/Login/Contact placed in the upper right hand area, and the drop-down menus spread across the red menu bar.
{It's behaving fine in IE 6.0 and FireFox.  IE 8.0 overlaps the secondary
menus but it's workable.  It expands proportionally from 1024 up to 1920
wide screens.  It's a little wide for 800 but that's not a problem these
days.} - Chris - Bizynet
(note the overlap of the hover menu)
Yesterday I downloaded the update for DW SC4, opened both templates, saved them, and re-uploaded them, thus they have the most current spry assets.
I would be ever thankful to have a template that looks correct in all browsers.  I like the spread-out drop-downs in the table/cell MIN2010 version, however, I'm very much wanting to enter the web 2.0 world using only div's.
Thanking you in advance for your time and suggestions - Jess
P.S. for a look at the web 1.0 version of the site here is the link: http://musicnotes.net - (archaic, I know)
SpryMenuBarHorizontal.css for JESS (div's)
@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
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
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.MenuBarHorizontal li
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
position: relative;
text-align: left;
cursor: pointer;
width: 8em;
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.MenuBarHorizontal ul
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
z-index: 1020;
cursor: default;
width: 8.2em;
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.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;
background-color: #EEE;
padding: 0.5em 0.75em;
color: #333;
text-decoration: none;
/* 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: #33C;
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(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%;
/* 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;
SpryMenuBarHorizontal.css  for MNI2010  (table/cells)
@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
margin: 0;
padding: 0;
list-style-type: none;
font-size: 80%;
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.MenuBarHorizontal li
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
position: relative;
text-align: left;
cursor: pointer;
width: 12em;
float: none;
/* 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: 10em;
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.MenuBarHorizontal ul.MenuBarSubmenuVisible
left: auto;
/* Menu item containers are same fixed width as parent */
ul.MenuBarHorizontal ul li
width: 15em;
/* 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;
background-color: #CC3333;
padding: 0.5em 0.75em;
color: #FFFFFF;
text-decoration: none;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
/* 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: #FFFFFF;
color: #000000;
/* 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: #FFFFFF;
color: #000000;
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%;
/* 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;

Hi Jess,
I had a look at the markup and found one little error. On line 112 there is one '</ul>' too many. For the rest your code is perfect and works in all browsers as checked on https://browserlab.adobe.com.
my tech friends say it doesn't align up in all browsers
This statement intrigues me. Please list the names of the browsers where 'it' doesn't line up.
{are there supposed to be the wide white margins around it?  I can try setting the header up as a table so things stay in place and itworks at all screen widths.} Chris Bizynet
The white margin is a matter of design. A full width page can easily be achieved by tweaking the styles in the CSS. Try changing the following properties in the stylesheet. At each change check in the browser to view the result.
.oneColElsCtrHdr #container {
  background: #FFFFFF;
  margin: 20px auto 0 auto; /* the auto margins (in conjunction with a width) center the page */
  text-align: left; /* this overrides the text-align: center on the body element. */
  min-width: 860px;
  max-width: 1024px;
  width: 96%;
Reverting to a layout using tables can also achieve the same result in the same way that an ox and cart can move a pay load. If this statement seams to be cynical, it is meant to be.
(It is frustrating to work with a design that doesn't look the same in DW as it will in a browser - i.e., the white space to the left of the red menu bar)
This is another intriguing matter. Which browser were you using to get this result? As far as DW is concerned, it does its best to interpret the page, the best test is always the browser and well all browsers because of their differences. Yes this is frustrating.
So,my tech friend rebuilt the template using (sorry to say) tables and cells, with the intention to keep the drop-down menus to stay in place:
http://musicnotes.net/MNI2010/2010/index.html
There are too many errors within that design to discuss within the parameters of this forum.
I would be ever thankful to have a template that looks correct in all browsers.  I like the spread-out drop-downs in the table/cell MIN2010 version, however, I'm very much wanting to enter the web 2.0 world using only div's.
To have an elastic menu, all you need to do is tweak the CSS as follows:
ul.MenuBarHorizontal li {
  width: 16.6%; // 6 menu items X 16.6% = 99.6%
Before opting for a fully elastic design (full page width), please Google the topic for more background information. The design that you have at this stage is elastic for screen resolutions from 860px wide to 1280px. Below 860px the layout of the menu is seriously affected, above 1280px, the width of the written contents makes it hard to read. In making your choice, have a look how large corporations design their sites.
I hope this helps.
Ben

Similar Messages

  • Horizontal Spry Menus are not showing up in ANY browser HELP!

    www.tvnewsjunkie.com
    I am a novice web designer and I need help!
    The above site listed is the site I am currently working on. As you can see the menu bar...is not a menu bar at all but a long list of links along the left side.
    HOWEVER, when I click on LIVE VIEW in DreamWeaver everything looks fine.
    There should be 7 total menu bars with 7 Dropdown menu options each (except on the bottom menu bar which there will only be 4 I believe)
    What am I doing wrong??

    Thank you so much for your help!This matter is certainly closed.
    I just want to add, however, that somehow my Spry Assets folder was placed somewhere outside of the rest of my files! no wonder I was confused.
    Thank you again!
    Grant
    Date: Fri, 17 Dec 2010 23:43:25 -0700
    From: [email protected]
    To: [email protected]
    Subject: Horizontal Spry Menus are not showing up in ANY browser HELP!
    You have forgotten to upload the support files - SpryMenuBar.js and SpryMenuBarHorizontal.css - to the server.
    Gramps
    >

  • Horizontal Menu right aligned

    I have seen this link:
    http://dougmccune.com/blog/2007/01/25/vertical-menubar-component/
    To allow for vertical menus, but how can we get a menu to align on the right side? My menu always fills the entire space, so calling right="10" does nothing, because the Menu fills the space anyway. I want the menu to be right aligned and fill the length of the menu. Does that make sense? Should I add onto what Doug has to build a menu that is horizontal and right?
    TIA

    Todd,
    If I am understanding your dilema here, you want the menu to align right while the SWFLoader is left??
    Or perhaps the everything in your Application Control Bar to align right.
    I usually don't recommend using "right=10" or such.
    Try wrapping your menu in a HBox this gives you the ability to use the horizontalAlign property to manipulate your menu's layout location.
    <mx:ApplicationControlBar id="toolbar" width="100%">
         <mx:SWFLoader source="@Embed(skinClass='garmin_logo')" width="148" height="41"/>
         <mx:HBox width="100%" horizontalAlign="right">
              <menu:MainMenu id="mainMenu"/>
         <mx:HBox/>
    </mx:ApplicationControlBar>
    HTH,
    Kenny Yates

  • Horizontally or Vertically Aligned Duplicating

    When i dulpicate an object across horizontally or vertically
    (holding down Option, Shift), the duplicated object usually doesn't
    stay aligned with it's original, see
    http://home.exetel.com.au/twistedpancreas/images/color_change.swf
    this has happened also in previous versions of Flash (I'm on
    Flash 8 currently and on a Mac, but it happens on PC's too)
    but i've never had the opportunity to ask why this is.
    So i will now.
    Why is it so?

    Yeah i did a little test, and it seems to happen more when
    you zoom into an area.
    i also found if you try to select the centre of the object
    and constrain it, it usually doesn't jump somewhere else. I think
    converting it to a symbol also helps so that you know where the
    centre point is.
    But yeah if you select an edge of an object and try to
    constrain it seems to jump somewhere else, which can be a bit
    frustrating. Sometimes it just means zooming out (like 800%) and
    holding down Shift and using the arrow keys to constrain the
    movement.
    Hope that helps a little.

  • CSS (Responsive) Horizontal Dropdown Menu (Alignment)

    I am styling a Responsive CSS Horizontal Dropdown Menu (for hours now), and can not get the main menu headings (Directory, Resources, etc) to align left (even) with the logo and content divs. I would also like the submenu headings (Learning & Games) and items (Catch the Bullet, Snoopydoo, etc) to align left (even) with the logo and content divs. - Like I am trying to do with the main headings. --I am trying to get the logo, main menubar heading, and menubar subheading to all align the same left.
    (Optional) I am considering on not having the gray menuboard span the whole screen when opened. Not sure if this would look good, but even more unsure how to keep it in the 90% container the menubar is located in.
    Here is the site for code:
    http://dothopper.com/index.html
    Thanks for any help.

    Another great tip. Never cease to amaze. Thanks . I uploaded the new CSS with red border and looked at somewhat. It seems very helpful, but like this navbar, I'm gonna have to spend some time with. I think this may help me to figure the problem. This is a really GREAT trick, thanks. If you appen to look at my site, and see anything relevant to getting the element to shift left, let me know.
    BTW, crammed some more learning recently (Mostly Dreamweaver, little HTML STructure, and JQuery). Going to try to not use as many divs, (use HTML tags and class selectors). Trying to use captions in my HTML and CSS for organization and understanding. Making copies of all my CSS, JS, and HTML. Set my areas (divs) up as 'section,aside,article,and footer'?--Tried adding metatag info (I think I missed 1 part of the metatag (they wanted a value?). Not sure if my metatagging is correct? Let me know of any advice what I'm doing right/wrong so far.
    I taught myself to design using divs like tables somehwat. With the correct way of design (not using alot of divs)..how would I handle this?...
    My old page (method), I had several,divs:  3- (content75%) and 3- (image25%) all housed within a div (approx 900px). Content was left, and images right. Total DIV that housed them was 75% of 1232px page? (I think)..The div that housed them was approx 900px (.75x1232). Content approx 675px and image approx 225px wide.
    I inseted 480px wide images in that 25% image div and it showed it nicely as approx 225px wide on desktop, and when responsive on mobile, nice full size at 480px. (I think I am/was avoiding having to use alternative images--for each platform-- this way?)
    With the correct way of designing (less divs), how would I handle this scenario above? IF I inserted a 480px image into a approx 900px div with no other divs, it would fill the div with a 480px image. IT would then throw my wole design off. I think I'm just missing some HTML/CSS knowledge. Hope this question makes some kind of sense?

  • Horizontal Spry Submenu Alignment Problems

    I am experiencing a massive emotional low with not being able to figure this problem out.
    I have incorporated a Spry menu in the site I'm building, but I'm having trouble getting the
    drop down submenu to align properly in Firefox/ Chrome AND IE8
    What seems to be the heart of the problem is the CSS for the Spry class "ul.MenuBarHorizontal ul.MenuBarSubmenuVisible"
    By default, it's set to this:
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
    left: auto;
    If I leave it like this, the submenus drop down where I want them to (upon rollover) - with the left edge
    of the submenu aligned with the parent button (ul li item). However this only works properly in Chrome / Firefox.
    If I use IE8 to look at the site. The submenus drop down such that the left edge of submenu aligns
    with the the center of the partent button (ul li item) upon rollover.
    I can get IE to overcome this alignment issue by adding "position:relative" to the CSS for "ul.MenuBarHorizontal ul.MenuBarSubmenuVisible"
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
    left: auto;
    position:relative
    After making this addition, IE8 works fine, and the submenus align to the left. But now, if I browse in Chrome
    or Firefox, the 1px border of the submenus do not appear on the left, right and bottom edges. It's only there
    for the top edge???!!!??
    It seems that the property listed below gets compromised and does not work if I add the "position:relative" attribute
    to "ul.MenuBarHorizontal ul.MenuBarSubmenuVisible"
    /* Submenu containers have borders on all sides */
    ul.MenuBarHorizontal ul
    border: 1px solid #CCC;
    If anyone can offer and explanation to this I would be hugely appreciative.
    Thanks so much,
    Hosanna_Bizarre

    Please find the html and css attached.
    Yes, I have used text-align: center on the main menu.
    Like I say, adding position:relative to the css for "ul.MenuBarHorizontal ul.MenuBarSubmenuVisible"
    fixes the problem for IE and it displays left justified submenu items underneath a center-aligned
    main menu button.
    Problem is the submenu borders do not display properly any more for Chrome / Firefox.
    Thanks
    H

  • Horizontal Menu Submenu alignment

    Problem: how to change the top alignment of a submunu list so
    that it aligns with the top of the first choice in the parent menu
    listing. ??
    Presently "top=0" in CSS puts the top edge of the child
    submenu list in line with the top line of the selected choice of
    the parent menu. What I would like to do is align the child top
    line to the top line of the first choice in the parent menu no
    matter what item in the parent menu is selected.
    The top= -20px (or a percent or whatever value) will move the
    location of the child menu up relative to the top line of the
    selected parent item, but I would like to reference the location of
    all submenu to the top line of the first listed choice of the
    parent menu. How can I do that? Is it possible?

    Thank you for your feedback.
    Basically, the SpryMenuBar is a very well thought out widget, catering for all modern browsers. The HTML is the same as for other well designed menubars, the JS ensures that the submenus work in the different browsers and the CSS is partially very similar to other menubars and partially there to service the JS.
    Having said that the SpryMenuBar is a very delicately balanced widget mainly because of the differences in browser interpretation.
    The problems arise when people not in the know, start to unbalance the menu by unwittingly changing critical parts of the CSS. Have a look here to see what I mean http://www.dwcourse.com/dreamweaver/ten-commandments-spry-menubars.php#one
    For more info on what you are looking for, have a look here for auto width http://labs.adobe.com/technologies/spry/samples/menubar/AutoWidthHorizontalMenuBarSample.h tml and here for centering the menubar http://labs.adobe.com/technologies/spry/samples/menubar/CenteringHorizontalMenuBarSample.h tml
    SpryMenuBar v2 makes it easier for newbies to style the menubar, I tend to stick to the original menu.
    If the above has not helped you with the problem, please come back here.
    Gramps

  • Horizontal toolbar alignment in form

    Hello,
    We are in the process of migrating from Forms 6i C/S to Forms 10g R2.
    We have a problem in which the Horizontal toolbar is aligned to the left instead of the right, the direction is ok all the buttons in the design preview are placed in the same order but the toolbar canvas is drawing the items from left to right
    Ex:
    design:
    _________________________________________ [button2][button1]
    On the web:
    [button2][button1]_________________________________________
    There is also an image on the canvas and it's position stays the same.
    The module, block, canvas and window direction property is Right to Left, The NLS_LANG is HEBREW_ISRAEL.IW8IS08859P8, Oracle10gDS platform is win 2000 and browser is IE.
    This works well in Forms 6i C/S but seems broken is 10g....
    I even tried to make a new form with the toolbar and it didn't work, so it's not related to the application code.
    Thank you for your help.

    did you search in metalink for such a problem. This seemed to be the fastest way, because the environment is not typical for our WE8ISO-environments

  • Using images in Spry menus

    Can someone please point me to instructions on how to incorporate button images in horizontal Spry menus?

    Here's the working model for the menu I created using images for the main menu tabs: http://mmfc.org/HomePage_CleanUp/index_working.html. And here is the style sheet: http://mmfc.org/HomePage_CleanUp/SpryAssets/working.css.
    I have one remaining problem, and hope someone can help.
    There are three states/images for the main menu tabs: normal state, hover state (when the cursor is over the tab), and visible state (when a submenu is open and the cursor is over a submenu item).
    In OS10.6.4/Safari, it works correctly:
    Normal state
    Hover state
    Visible state
    In Windows XP/IE 6, the 3rd state works incorrectly -- the hover state doesn't get replaced by the visible state:
    In OS10.6.4/Opera and OS10.6.4/Firefox, it also works incorrectly -- but this time the hover state gets replaced by the hover color, not the visible state image:
    For reference, I've copied the CSS below.
    @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;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    cursor: default;
    float: right;
    /* 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;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    position: relative;
    text-align: left;
    cursor: pointer;
    width: auto;
    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.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: #FDE9BB;
    /* 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 variable width according to submenu item text */
    ul.MenuBarHorizontal ul li {
    width: auto;
    /* 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
    /* No borders on all sides */
    /* ul.MenuBarHorizontal ul
    border: 1px solid #666666;
    /* Menu items are a light colored block with no padding and no text decoration */
    ul.MenuBarHorizontal a {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    white-space: nowrap;
    text-decoration: none;
    display: block;
    cursor: pointer;
    color: #000000;
    padding-right: 0px;
    padding-left: 0px;
    padding-top: 0px;
    padding-bottom: 0px;
    font-size: 11px;
    /* For setting the background color of the spry menu you need to edit the background in the CSS pane. Click on the spry menu bar and then open up the CSS pane. Window > CSS Styles. There's a few CSS items that set the background by default. The "a" item sets the background for the items that don't have a dropdown and the MenuBarItemSubmenu sets the background for the items that have a dropdown. You can set the background to an image just like you would any other element in your HTML. */
    /* The following selectors define images for the (orange) normal state of tabs */
    ul.MenuBarHorizontal a #AboutUs {
    background-image: url(../img/DropDownMenu_aboutus.gif);
    ul.MenuBarHorizontal a #Missions {
    background-image: url(../img/DropDownMenu_missions.gif);
    ul.MenuBarHorizontal a #Help {
    background-image: url(../img/DropDownMenu_help.gif);
    ul.MenuBarHorizontal a #NewsAndEvents {
    background-image: url(../img/DropDownMenu_newsandevents.gif);
    ul.MenuBarHorizontal a #Media {
    background-image: url(../img/DropDownMenu_media.gif);
    ul.MenuBarHorizontal a #PatientStories {
    background-image: url(../img/DropDownMenu_patientstories.gif);
    ul.MenuBarHorizontal a #ContactUs {
    background-image: url(../img/DropDownMenu_contactus.gif);
    /* The following selectors define images for the (bright) active state of tabs.*/
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover #AboutUs, ul.MenuBarHorizontal a.MenuBarItemHover #AboutUs, ul.MenuBarHorizontal a.MenuBarSubmenuVisible #AboutUs {
    background-image: url(../img/DropDownMenu_aboutus_vis.gif);
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover #Missions, ul.MenuBarHorizontal a.MenuBarItemHover #Missions, ul.MenuBarHorizontal a.MenuBarSubmenuVisible #Missions {
    background-image: url(../img/DropDownMenu_missions_vis.gif);
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover #Help, ul.MenuBarHorizontal a.MenuBarItemHover #Help, ul.MenuBarHorizontal a.MenuBarSubmenuVisible #Help {
    background-image: url(../img/DropDownMenu_help_vis.gif);
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover #NewsAndEvents, ul.MenuBarHorizontal a.MenuBarItemHover #NewsAndEvents, ul.MenuBarHorizontal a.MenuBarSubmenuVisible #NewsAndEvents {
    background-image: url(../img/DropDownMenu_newsandevents_vis.gif);
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover #Media, ul.MenuBarHorizontal a.MenuBarItemHover #Media, ul.MenuBarHorizontal a.MenuBarSubmenuVisible #Media {
    background-image: url(../img/DropDownMenu_media_vis.gif);
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover #PatientStories, ul.MenuBarHorizontal a.MenuBarItemHover #PatientStories, ul.MenuBarHorizontal a.MenuBarSubmenuVisible #PatientStories {
    background-image: url(../img/DropDownMenu_patientstories_vis.gif);
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover #ContactUs, ul.MenuBarHorizontal a.MenuBarItemHover #ContactUs, ul.MenuBarHorizontal a.MenuBarSubmenuVisible #ContactUs {
    background-image: url(../img/DropDownMenu_contactus_vis.gif);
    /* The following selectors define images for the (red) hover state of tabs.*/
    ul.MenuBarHorizontal a:hover #AboutUs, ul.MenuBarHorizontal a:focus #AboutUs {
    background-image: url(../img/DropDownMenu_aboutus_hover.gif);
    ul.MenuBarHorizontal a:hover #Missions, ul.MenuBarHorizontal a:focus #Missions {
    background-image: url(../img/DropDownMenu_missions_hover.gif);
    ul.MenuBarHorizontal a:hover #Help, ul.MenuBarHorizontal a:focus #Help {
    background-image: url(../img/DropDownMenu_help_hover.gif);
    ul.MenuBarHorizontal a:hover #NewsAndEvents, ul.MenuBarHorizontal a:focus #NewsAndEvents {
    background-image: url(../img/DropDownMenu_newsandevents_hover.gif);
    ul.MenuBarHorizontal a:hover #Media, ul.MenuBarHorizontal a:focus #Media {
    background-image: url(../img/DropDownMenu_media_hover.gif);
    ul.MenuBarHorizontal a:hover #PatientStories, ul.MenuBarHorizontal a:focus #PatientStories {
    background-image: url(../img/DropDownMenu_patientstories_hover.gif);
    ul.MenuBarHorizontal a:hover #ContactUs, ul.MenuBarHorizontal a:focus #ContactUs {
    background-image: url(../img/DropDownMenu_contactus_hover.gif);
    /* Menu items that have mouse over or focus have a dark background and white text */
    ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus {
    background-color: #bf2e1a;
    color: #FFFFFF;
    /* Menu items that are open with submenus are set to MenuBarItemHover with a dark background and white text */
    ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible {
    background-color: #bf2e1a;
    color: #FFFFFF;
    /* Sets width of submenus and makes text non-wrapping  */
    ul.MenuBarHorizontal ul li {
    display: block;
    float: none;
    width: 12em;
    white-space: nowrap;
    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%;
    /* 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; */

  • Drop Down Menus in CC

    I found out the hard way Spry is no longer supported in Dreamweaver CC. I can not purchase another program to create a simple drop down menu. I know I need to use JQuery to do this. Can any one tell me how to do this or send me the coding I need to do this. I watched a video on Lynda.com but it is outdated using older versions of Dreamweaver so the coding did not work in CC. I'm frustrated, this shouldn't be that difficult as drop down menus are on most web sites. If anyone can help me I'd really appreciate it. I can't believe this is so complicated now. Spry seemed simple.

    Candice,
    Here's a basic CSS Menu I built.
    CSS code:
    /* BEGIN HORIZONTAL DROP-MENU */
    #menu {
        clear: left;
        position: relative;
        z-index: 1000;
        width: 100%; /**adjust width as needed**/
        margin: 0;
        padding: 0;
    #menu ul {
        margin: 0;
        padding: 0
    #menu li {
        list-style: none;
        font-size: 14px;
        float: left;
        text-align: center;
    /**top level menu**/
    #menu li a {
        display: inline-block;
        text-decoration: none;
        /* adjust width as needed or use auto */
        width: 14em; /*same as sub-menus*/
        /*space between links*/
        margin: 0 2% 0 2%;
        padding: 8px;
        font-weight: bold;
        line-height: 1.50em;
        border: 1px dotted #666;
        border-top: none;
        color: #FFF;
        background: #000;
    /**top menu style on mouse over**/
    #menu li:hover > a { background: #333; }
    /**sub-menu**/
    #menu li ul {
        display: none;
        text-align: center;
        margin: 0;
        padding: 0;
    /**sub-menu, help for older IE**/
    #menu li:hover ul, #menu li.hover ul {
        display: block;
        position: absolute;
        z-index:1000;
        padding: 0;
    #menu li:hover li, #menu li.hover li { float: none; }
    /**drop-menu style**/
    #menu li:hover li a, nav li.hover li a {
        width: 14em; /* adjust width as needed or use auto */
        margin-top: 0;
    /**drop-menu style on mouse over**/
    #menu li li a:hover {
        background: #FFF;
        color: #000;
    /* Clear floated elements at the end*/
    #menu:after {
        visibility: hidden;
        display: block;
        font-size: 0;
        content: " ";
        clear: both;
        height: 0;
    /**END HORIZONTAL DROP-MENUS STYLES**/
    HTML:
    <nav>
    <ul id="menu">
    <li><a href="#">ABOUT US &#9660;</a>
    <ul>
    <li><a href="#">Videos</a></li>
    <li><a href="#">Newsletter</a></li>
    </ul>
    </li>
    <li><a href="#">PRODUCTS &#9660;</a>
    <ul>
    <li><a href="#">Broken Glass</a></li>
    <li><a href="#">Mosaic Tiles</a></li>
    <li><a href="#">Adhesives</a></li>
    <li><a href="#">Grout</a></li>
    </ul>
    </li>
    <li><a href="#">ACCESSORIES &#9660;</a>
    <ul>
    <li><a href="#">Gloves</a></li>
    <li><a href="#">Rubber Mallets</a></li>
    <li><a href="#">Sponges</a></li>
    <li><a href="#">Safety Glasses</a></li>
    </ul>
    </li>
    <li><a href="#">CONTACT</a></li>
    </ul>
    </nav>
    Nancy O.

  • Hover no longer works in Safari

    The hover function no longer works correctly in my Safari although it works fine in Firefox. If I position my cursor over a link and move it slightly, underlining flickers on and off and the cursor switches back and forth between a hand and arrow, although the link still works. If I don't move the cursor, the hover image disappears completely. It happens on all the websites I normally go to. This is really a pain with sites that use pulldown hover menus and photo sites that use hover to display larger versions of thumbnails. Update says all my software is up to date. I'm using 10.4.8 and Safari Version 2.0.4 (419.3). I'm not loading any stylesheets via preferences. Any ideas?

    Another data point: this problem doesn't occur on any of the links on my gmail page.
    (it does happen on this forum page)

  • Spry horizontal menu showing as vertical ul in WordPress theme- help?

    I am trying to modify a fairly simple WordPress theme to match the look of other (static) pages on my site. I inserted a horizontal Spry menu in the file header.php. In the split code window in DW this has the proper appearance, but in MAMP (or on the remote server) it appears as as a vertical list of underlined links. I am guessing that the menu's appearance is being over-ridden somewhere, but where? Here is header.php; thanks for any help.
    <!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" <?php language_attributes(); ?>>
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link type="text/css" media="print" rel="stylesheet" href="<?php bloginfo('template_url'); ?>/print.css" />
    <?php
    // ClearType for embedded fonts on IE (http://allcreatives.net/jquery-plugin-ie-font-face-cleartype-fix/)
    wp_enqueue_script('jquery', get_option( 'siteurl' ) . '/wp-includes/js/jquery/jquery.js', false, '1.3.2');
    wp_enqueue_script('iefontfix', get_bloginfo('template_url') . '/js/IEffembedfix.jQuery.js', false, '0.1');
    ?>
    <!--[if gte IE 5.5]>
    <style type="text/css">
        body { behavior: url( <?php bloginfo('template_url'); ?>/js/csshover3.php) }
    </style>
    <![endif]-->
    <!--[if lt IE 7]>
    <script src="<?php bloginfo('template_url'); ?>/js/iepngfix_tilebg.js" type="text/javascript"></script>
    <style type="text/css">
        img, div, a, input { behavior: url(<?php bloginfo('template_url'); ?>/js/iepngfix.php) }
    </style>
    <![endif]-->
    <!--[if IE 6]><link type="text/css" media="screen" rel="stylesheet" href="<?php bloginfo('template_url'); ?>/ie6.css" /><![endif]-->
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
    <?php wp_head(); ?>
    <script src="../../../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="../../../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    </head>
    <body <?php body_class(); ?>>
    <div id="wrapper">
    <div id="header">
    <ul id="MenuBar1" class="MenuBarHorizontal">
      <li><a href="#">Item number 1</a>  </li>
      <li><a href="#">Item #2</a></li>
      <li><a href="#">Item #3</a>  </li>
      <li><a href="#">Item #4</a></li>
    </ul>
    </div>
    <!-- end header -->
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../../../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../../../SpryAssets/SpryMenuBarRightHover.gif"});
    </script>

    Thanks for the prompt help. The site root for Test Blog is at Sites/wordpress and the header.php for the theme is at Sites/wordpress/wp-content/themes/Basic. The scripts call Sites/wordpress/SpryAssets so ../../../ should be correct. When I load Basic/header.php in DW, the menu displays properly in Split view.
    As you know, wordpress loads the top-level index.php and that uses the index.php found in the activated theme to format the page. When I load this top-level index.php into DW, it displays the Spry menu correctly (horizontal, hover color change), but when I use option-F12 to load into Safari at localhost/wordpress, it shows the vertical list of links.
    The page is at timothybuchanan.org/wp. What I am wondering now is why the same page would display correctly inside DW and not in the browser. What should I check?

  • CS 4 Photomerge=vertical when it's a horizontal Panorama?

    Just upgraded to CS 4 from CS 3 and I seem to be having a problem with the photomerge. i have shot a bunch of horizontal Panorama sequences using a pano head making sure the nodal point is correctly aligned etc. I have done quite a bit with CS 3 with no troubles.
    Now with CS 4 I go from select the sequence in Bridge and under tools use Photomerge (auto) however instead of a horizontal panorama it aligning the layers in a weird vertical arrangement. Like I said I just upgraded to CS 4 and am wondering if i have something set screwy because this was never a problem with CS 3. Any insights or suggestions would be greatly appreciated.
    Thanks Jeff

    Hi Ramon thanks for the response:
    I trashed the preferences
    OS 10.5.6
    MacPro 2.8 quad 10gb ram
    plenty of overlap I have stitched this sequence with PTgui, it was shot with a dedicated pano head.
    Any ideas? I know I can get better results out of CS 3 so there must be something wrong
    thanks jeff

  • Adobe CC 2014 Align to center of artboard no longer working

    When I group objects and try to align them to the artboard, they go to the middle of the lower right quadrant.
    adobe illhttp://i.imgur.com/kuPM8nh.png

    It's working for me. What are your steps?
    Group Items
    Select "Align to artboard" option
    Click "Horizontal" and "Vertical" align center.

  • EnsureVisible in TreeView: how to ensure that horiz. scrollbar is aligned left

    Hi,
    I have a tree view with eg. following nodes
    # People
    |
    +--# Custumers
    |
    +-- # Anne Charles, Hillroad 14, 7766 MyTown, My Country
    |
    +-- # Steve Jones, Forestroad 12, 7766 MyTown, My Country
    With the command
    Me.treeViewM.Nodes(0).Nodes(0).Nodes(0).EnsureVisible()
    I can ensure that "Anne Charles" is visible within the treeview. My problem is: If the treeview is not wide enough to show the complete node text of this node, the horizontal scroll bar is automatically moved to the right so that node structure shown left from the "A" in the text "Anne Charles" is not visible any more. Thus
    Anne Charles, Hillroad 14, 7766 MyTown, My Country
    Steve Jones, Forestroad 12, 7766 MyTown, My Country
    is visible and the node structure is hidden.
    Question: How can I ensure that the node "Anne Charles" is visible and also the horizontal scrollbar is aligned to the left, which means that the node structure left from the text is still visible?
    Best wishes
    Michael
    [Visual Basic .net 2005]

    Look at following code project also: http://www.codeproject.com/KB/tree/NoScrollingTree.aspx
    You need PInvoke.
    At Top
    Imports System.Runtime.InteropServices
    And Following Functtion 
        Private Const WM_HSCROLL As Integer = 276
        Private Const SB_LEFT As Integer = 6
        <DllImport("user32.dll")> _
        Private Shared Function SendMessage(ByVal hWnd As IntPtr, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Integer
        End Function
    After Ensure Visible call the above Function
        Me.treeViewM.Nodes(0).Nodes(0).Nodes(0).EnsureVisible()
            SendMessage(treeViewM.Handle, WM_HSCROLL, SB_LEFT, 0)
    Arjun Paudel

Maybe you are looking for