How to change hover state on spry menu dropdowns?

I've spent 4 hours making changes to the style sheet. I cannot figure out how to make the drop-down menu background change when you mouseover. The text color changes, but the background doesn't. I keep making changes to the stylesheet, and sometimes I see no difference.
Also... trying to change the font color on the main menu text. Style sheet LOOKS right, but doesn't display any change.
ALSO, my border is wider than the submenus. They are both set to 15ems. Maybe I don't understand ems??? I appreciate all your help out there! Sorry for not taking out all comments from code...
http://duenorthdesign.com/pcm/index2.html
ul.MenuBarHorizontal {      margin: 0;      padding: 0;      list-style-type: none;      font-size: 100%;      cursor: default;      width: 748px; } /* 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: 15em;      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;      font-size: 12px;      background-color: #C2CA9A;      color: rgba(0,0,0,1); } /* 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 #61270e; } /* Menu items are a light gray block with padding and no text decoration */ ul.MenuBarHorizontal a {      display: block;      cursor: pointer;      background: 61270e;      padding: 0.5em 0.75em;      color: ffffff;      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 {      color: #61270e; } /* 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: transparent;      color: #61270e; } /******************************************************************************* 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/bkd_navtop.jpg);      background-repeat: repeat-x;      color: rgba(255,255,255,1);      font-family: "Yanone Kaffeesatz", Verdana, Geneva, sans-serif;      width: 149px;      font-size: 23px; } /* 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%; }

The good news is, Spry components generate their own CSs files so you know where to start when customizing. From there you can either go into the CSS file itself, or use the CSS styles panel in Dreamweaver.
if you're looking within the CSS file, you first need to find the block the styles the particular element you want to change, and tweak the values. However, if any of the attributes are inheriting their states from a parent rule, then you need to add that attribute to override the parent setting. So that means making sure you're using the right attribute and getting the syntax right.
If you use the CSS panel, select all, find you way to the correct style sheet, expand it and find the rule you need to change. You can set these parameters in the area underneath, or just double click the rule in the upper tree and display the CSS rules dialog. This is my favorite as it displays exactly what is contained in the style sheet in visual form. You can change values easily and add new attributes knowing that it will write the correct syntax. This should make it very easy to add hover states for the background and text, dimensions for the submenus and borders. For sizes and borders, I prefer pixels, but you can also add borders per side of the containing box - it doesn't have to be the same border all the way around.

Similar Messages

  • How to change hover size in Spry panel but not rest of site?

    Hi guys, I need to add more tabs which means I need to reduce the font size of my H2 style and its hover state. However, when I adjust this to be 10 pt in sprytabbedpanels2.css it stays at 14 in live view until I also change the setting to 10 pt in my Arrowmark.css file, which then stuffs up the hovering behaviour of links elsewhere in my site.
    Is there a way to adjust the hover only in the tabbed panels style sheet and not affect the rest of the site? Or am I doing something wrong?
    My site is at www.wakatipucollection.co.nz/wholesale
    Thank you in advance for assistance.
    Jo

    Most welcome m'lady +
    How about bumping the font size up to12px to give us old guys with 80-year old eyes a break.
    You'll also need it on line 126 here:
    .TabbedPanelsTab {
        cursor: pointer;    font-size: 12px;
        list-style: none outside none;

  • How to show active page in Spry Menu Bar using images

    Hi,
    I have already read this answer "how to show active page in spry menu bar" but I am using images, not text.  I have mouse-over and mouse-out working in the Spry Menu Bar using image.png and image-over.png, but I cant' figure out how to get the image-over.png to appear on the active page since the spry menu bar is locked on the individual pages.  (I tried to put it in an editable comment, but spry wouldn't go for it. :-)
    Any ideas.  Here is the code:
    <ul id="MenuBar1" class="MenuBarHorizontal">
           <li><a href="../index.html" id="home" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image8','','../images/all_pages/home-over.png',1 )"><img src="../images/all_pages/home.png" alt="Home Page" name="home" width="58" height="20" border="0" id="Image8" /></a></li>
           <li><a href="../show.html" id="show" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('show','','../images/all_pages/show-over.png',1)"><img src="../images/all_pages/show.png" alt="The Show" name="show" width="101" height="20" border="0" id="show" /></a></li>
            <li><a href="../team.html" id="team" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('team','','../images/all_pages/team-over.png',1)"><img src="../images/all_pages/team.png" alt="The Team" name="team" width="97" height="20" border="0" id="team" /></a></li>
            <li><a href="../company.html" id="company" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('company','','../images/all_pages/company-over.png',1)"><img src="../images/all_pages/company.png" alt="The Company" name="company" width="139" height="25" border="0" id="company" /></a></li>
            <li><a href="../beatles-tickets.html" id="tickets" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('tickets','','../images/all_pages/tickets-over.png',1)"><img src="../images/all_pages/tickets.png" alt="Tickets" name="tickets" width="75" height="20" border="0" id="tickets" /></a></li>
            <li><a href="../media.html" id="media" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('media','','../images/all_pages/media-over.png',1)"><img src="../images/all_pages/media.png" alt="Media" name="media" width="61" height="20" border="0" id="media" /></a></li>
            <li><a href="../news-reviews.html" id="news" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('news_reviews','','../images/all_pages/news_reviews-over.png',1 )"><img src="../images/all_pages/news_reviews.png" alt="News-Reviews" name="news_reviews" width="149" height="20" border="0" id="news_reviews" /></a></li>
            <li class="MenuBarHorizontal"><a href="../contact.html" id="contact" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('contact','','../images/all_pages/contact-over.png',1)"><img src="../images/all_pages/contact.png" alt="Contact Us" name="contact" width="79" height="20" border="0" id="contact" /></a></li>
         </ul>
    Thanks so much for helping!
    Cheers,
    Janell

    Just found this page:
    Persistent Page Indicator
    Update: Drat, it is for text menus only not using images. :-(
    Cheers,
    Susan

  • How to create active state or current state in spry menu ?

    i have build a vertical menu with spry menu widget, Just
    wondering if any one can guide me how to create an active state or
    current state in the menu.
    I want the visitor to understand which page they are on, so
    just want to change the colour of the active link.

    <helpful but self-serving too>
    There are several ways to do this, but the easiest way, if I
    may say so,
    is to use my divaGPS Extension. It works with virtually any
    menu type
    and is designed to accomplish precisely what you are asking
    for quickly
    and easily.
    </back to our regularly scheduled programming>
    E. Michael Brandt
    www.divaHTML.com
    divaPOP : standards-compliant popup windows
    divaGPS : you-are-here menu highlighting
    divaFAQ : FAQ pages with pizazz
    www.valleywebdesigns.com
    JustSo PictureWindow
    JustSo PhotoAlbum

  • Is it possible to change the height of Spry Menu Bar items?

    I'm new to websites and have been trying to understand the CSS of the Spry menu bar. I've managed to put a horizontal menu bar in place and with the help of some previous discussions in this forum, have changed the colours of the menu items and have even managed to centre the text - Thanks!
    However, I really would like to have a smaller menu bar - height wise.
    I've tried reducing the default height of the menu bar items by adding a height and by reducing the font size and padding. The results have been varied.  In Firefox and in Dreamweaver's 'live view' there is still a thin line showing underneath my horizontal menu which is the background colour of the div my menu sits in.  In IE there is a similar 'chunk missing' from the bottom of the items.
    Is this something that can be done?  I've seen lots of help on how to change the width of the items, but have not found any which suggest that the height can be changed.
    Gill

    Sure. You just need to be thorough. Keep in mind that in a Spry Menu Bar you are making the link-text in the list-items block elements, so you will want to change the line-height of the a element. Pick style selectors in the css stylesheet that end in a, with or without an additional class (a.classhere), and play with the line-height.
    Another attribute you can consider is the difference in height between Cap and lower case and All caps. You can usually get away with a smaller line-height and a smaller font-size with all caps, because there are no descenders on the text to require more line-height. Keep in mind also that when you state a line-height, your text will center vertically in the line-height, as far as I know, so you might even get away without top and bottom padding.
    Beth

  • How Do I Create an Editable Spry Menu as part of a Template?

    I am having considerable trouble trying to work out an issue and hope you can help. I have been working on a webpage that I would like to be a template for a fundraiser we are doing. I used a horizontal spry menu and a vertical spry menu. I have two youtube videos that I would like embedded on the page, but I would like the flexibility to change them for different pages. I am trying to make my horizontal and vertical spry menus editable since I am going to be making pages for all items in the menus. I can't seem to set this up correctly. Can you tell me what I am doing wrong? I have been able to set up editable regions according to my template file, however, when I open the template, I am unable to edit the spry menus or edit the youtube videos. Setting up editable regions also seems to change the look of my page.
    Here is what I would like all the pages to look like: http://www.ymimusic.com/shoppers_guide.html
    But this is how it looks presently when I try to make a page from the template I created following the instructions from the course: http://www.ymimusic.com/test.html
    Since I cannot get the template to work the way I would like, I have not created any links yet. I can send you the template and html page if this will help. Thank you for your help in advance./p>

    Murray,
    I am just opening your responses now. I will try to clarify again. "There's the rub.  This is not a wise choice.  A completely different  menu in each page will not only confuse your visitors, it will drive you  insane.  I strongly suggest you not do this." You were referring to "What throws us off the track is your wish to be able to have a different  menubar in each page. In that case the menubar will need to be in an  editable region."
    What I am simply trying to do is this: If I create a menu that has the following links: About Us, Products, and Contact Us on one page, I want my customers to see the SAME menu on the About Us page, the Products page and the Contact Us page. I am NOT creating different menus on each page. I am trying to automate the format by creating a template that will show these links on each page without me redoing it every page.
    When I attempted this, and created a page from the template, I could not get into the menu to assign links to different pages. Using the above example, If I created my About Us page as the template for the site, then created the Products page from the template, I need the ability to assign the links on the Products page to the About Us and Contact Us pages. The page created from the template does not allow me to do this. I cannot get in to assign the links in the Properties section of Dreamweaver. I even attempted to do the following action in the .dwt file I created:
    Modify > Templates > Make Attribute Editable
    I did this to make the links editable after creating the template. This obviously didn't work.
    To summarize: I do NOT want to make different menus on each page. I simply want to create the two menus you see (one horizontal and one vertical) that will be part of the template. I am trying figure out when I assign the links and How. I will go back and read your notes as well as read the help section (F1) as you requested, however that is why I contacted you; I did not understand what I was doing wrong. I have been working with a course series in Lynda.com that has explained much of what to do up to my problem spot, I simply need to understand the concept.
    Thank you for your assistance.

  • How to change the position of a menu?

    Hello,
    I'm a new dreamweaver developer so I would like to ask you
    few questions.
    If I have a sprite menu that is positioned by default in the
    left border of the page, how can I change it's position inside the
    page?With css?How?
    I'd have to put inside my page also a logo image but, just as
    menu, I am unable to put it in the right part of the page; so I was
    wondering how to change its position too.
    Thank you,
    Kind Regards, Luke14free

    You would change its position by changing the position of its
    container. We
    would need to see your page and its code to know how to do
    that.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "luke14free" <[email protected]> wrote in
    message
    news:f2pntm$lf1$[email protected]..
    > Hello,
    > I'm a new dreamweaver developer so I would like to ask
    you few questions.
    > If I have a spry menu that is positioned by default in
    the left border of
    > the
    > page, how can I change it's position inside the
    page?With css?How?
    > I'd have to put inside my page also a logo image but,
    just as menu, I am
    > unable to put it in the right part of the page; so I was
    wondering how to
    > change its position too.
    > Thank you,
    > Kind Regards, Luke14free
    >

  • How to change font-size of application menu

    I want to change font-size of application menu. How?

    Hi,
    To change the font size of the Application menu, you need to change main.css file.
    at 'body, td, input, select, textarea' class.
    For more detail about main.css, please refer Bookshelf
    Siebel Developer's Reference at [8 Cascading Style Sheets].
    Regards,
    Joseph Arul Dass

  • How to Change an Annotation's Right Menu?

    I want to change the "Stamp" annotation's right menu to a Custom menu,How to achieve it in my plug-in? Please guide me~~~
    Any help would be appreciated.

    Hi, Irosenth
    Thanks for your reply.
    I changed :
    PDAnnot newAnnot = PDPageCreateAnnot (page, ASAtomFromString("Stamp"), &fr);
    to:
    PDAnnot newAnnot = PDPageCreateAnnot (page, ASAtomFromString("MyStamp"), &fr);
    so the Stamp's original pop-up menu will no longer display, but how to create a new pop-up menu for "MyStamp"?
    LusterSir

  • How to change color of DHTML sub menu list

    Hi all,
    In my application i am using DHTML submenu list. But I have to change the color of
    the menu list which is selected currently.
    In interactive report how to fix the column width , because if one column has big string it's going to the right side. My requirement is after fixed column width it has to come in the second line.
    pls help me. I am in urgent need.
    thnks
    pnr

    im a bit confused with the post so hopefully this will help you, if not then let me know.
    I think the problem is that in your renderer your saying
    setBackground(header.getBackground());which is setting the backgound of the renderer rather than the selected item, please see an example below, I created a very simple program where it adds JLabels to a list and the renderer changes the colour of the selected item, please note the isSelected boolean.
    Object "value" is the currentObject its rendering, obviously you may need to test if its a JLabel before casting it but for this example I kept it simple.
    populating the list
    public void populateList(){
            DefaultListModel model = new DefaultListModel();
            for (int i=0;i<10;i++){
                JLabel newLabel = new JLabel(String.valueOf(i));
                newLabel.setOpaque(true);
                model.addElement(newLabel);           
            this.jListExample.setModel(model);
            this.jListExample.setCellRenderer(new RowHeaderRenderer());
        }the renderer
    class RowHeaderRenderer extends JLabel implements ListCellRenderer
        JTable theTable = null;
        public Component getListCellRendererComponent(JList list, Object value,
                                                      int index, boolean isSelected, boolean cellHasFocus){
            JLabel aLabel = (JLabel)value;
            if (isSelected){
                aLabel.setBackground(Color.RED);
            }else{
                aLabel.setBackground(Color.GRAY);
            return aLabel;       
    }

  • How to change options in Run time menu while labView was running

    Hello Good Afternoon,
        I m Using LabView 8.5.How to change the options in Run time menu for any control while Labview was running
    Thanks 
    Jai
    Jayavel
    Solved!
    Go to Solution.

    Hi Jai,
    Try the below attached VI and let me know if u still need some explanation.
    Rgds,
    Venky
    Attachments:
    Run Time Menu.zip ‏6 KB

  • How to change the color of navigation menu text?

    Hello guys,
    is there any way to change the color of navigation menu text? (Home, Contact About us,etc)
    Thank you,
    Cheers

    To create your own navigation bar, you can use a textbox and use colour fill with any colour you want and then enter the names of your pages in this and create hyperlinks to these pages. The text can then be any colour you want.
    You can also use shapes if you want to and use the shapes to create individual buttons.
    To hide the original nav bar, go to page and it has a couple of boxes with hide nav bar and include in page. Uncheck these and the original nav bar will disappear. You can't delete them however.

  • Spry menu dropdowns stop working

    Hi,
    I have a test site on my own site that I am hoping to put
    live next week - so I'm testing it thouroughly...
    see www.tthonline.co.uk/LBTC
    The problem is, if you go to a 'What's On' page and then use
    a few of the named anchors in the left menu bar to jump to sections
    in the long list of events - after say three or four selections the
    drop downs from the horizontal menu bar stop appearing. I have not
    modified the javascript in any way - my only changes to the
    standard spry setup are CSS based.
    As I say this site was going live next week, so I call this
    urgent

    Problem solved - a typo and the use of a reserved word as an
    anchor...

  • Spry menu dropdown suddenly doesn't work

    I've noticed my spry menu drop down has stopped working in browsers even though I've not touched the site and when I tried to view the structure in Dreamweaver, I found I couldn't select it. Can anyone enlighten me before I try to recreate the menu?

    Sorry for the response, sometimes I get to the stage where I sigh and in a dismayed state say "Not another one" and my reactions become uncontrolled and uncalled for. "They are coming to take me away, ha ha! (Beatles 1960's)" sort of thing.
    Hopefully, the above is sufficient for you to accept the apology.
    Now for you problem. Add
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    to immediately above the </body>-tag at the bottom of your document.
    Unrelated to your problem,
    have a look at the 28 calls to images/menu_hme.css, a non existing document
    the link to images/mm_css_menu.js, a non existing document
    the structure of the following
    <td><table width="90%" style="max-width: 1024px;" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td rowspan="5" align="left" valign="top"><img src="images/logosml.jpg" alt="Network Computing Ltd" width="120" height="158" /></td>
        <td align="right" class="NCLbold"><table width="100%" border="0" align="right" cellpadding="0" cellspacing="0">
          <tr>
            <td width="84%" align="right" valign="bottom"><table width="500" border="0" align="right" cellpadding="0" cellspacing="0">
              <tr>
                <td width="553" align="right"><span class="Subhead">IT support services for London, Kent and the South East</span></td>
              </tr>
            </table></td>
            <td width="16%" align="right" valign="middle">01732 522225</td>
            </tr>
        </table></td>
      </tr>
    The quoted markup shows
    an opening <TD> without an opening table structure
    opening <TR>'s without a table structure
    closing </TABLE>'s without opening a table structure
    I did not check the complete document, this I shall leave up to you.
    Gramps

  • How can I sort the Firefox Tools menu dropdown list alphabetically?

    The Tools menu has a dropdown list, but entries are not in alphabetical order. Options and some individual add-ons/extensions show up in the list, but not alphabetically. It would be helpful to have them in alphabetical order in the list, however, I can find no option to sort them. Am I missing some hidden, built-in option for sorting? Is there an add-on perhaps that will provide a sorting means? Anyone have a clue? I haven't found anything in my searches on the topic... just regarding sorting bookmarks. But it is the Tools menu dropdown list I want to be able to tweak. Anyone?

    @ Gingerbread Man....
    Took your suggestion about trying the Menu Editor add-on. So far, it seems to be working. Noted some comments at the add-on's Mozilla page that indicated possible problems with changing the Context menu, and will monitor effects on some changes I made to that menu. But I'm very happy to have been able to re-order my Tools menu drop-down list with this add-on. Thank you so much! God bless!
    PS: Love your username : )

Maybe you are looking for