We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20096
    • 12 Posts
    Hi Modx friends. I a have a simple, yet perplexing problem. I used MuddyDogPaws cssplay dropdown menu which works like a charm, except that I modified to have to underline instead of change colors when you mouse over a menu item.

    I can get the lower level items to underline when I mouse over them, but not the parent item.

    Observe: http://www.windycitysings.org/

    I want each item to underline separately when moused over. oy.

    here’s the css. think you can help?:
    /* common styling windy city */
    
    .menu {font-family: gill sans, sans-serif; width:820px; position:relative; padding-top: 163px; margin: 0px auto 0px auto; font-size:16px; z-index:100; color: #4f4646; font-weight: 300;}
    
    .menu ul li a, .menu ul li a:visited {display:block; text-decoration:none; color:#4f4646; width:130px; height:36px; text-align:center; color:#4f4646; line-height:35px; font-size:14px; overflow:hidden; }
    
    .menu ul {padding:0; margin:0;list-style-type: none; }
    
    .menu ul li {float:left; margin-right:1px; position:relative;}
    
    .menu ul li ul {display: none;}
    
    
    
    
    
    
    .menu ul li:hover a { color:#4f4646; background-image: url(/assets/images/mist.png);}
    
    .menu ul li:hover ul {display:block; position:absolute; top:36px; left:0; width:120px;border-right:0;}
    
    .menu ul li:hover ul li a.hide {background-image: url(/assets/images/mist.png); color:#4f4646;}
    
    .menu ul li:hover ul li:hover a.hide {text-decoration: none; background-image: url(/assets/images/mist.png); color:#4f4646;}
    
    .menu ul li:hover ul li ul {display: none;}
    
    .menu ul li:hover ul li a {display:block; background-image: url(/assets/images/mist.png); color:#4f4646;}
    
    .menu ul li:hover ul li a:hover { text-decoration: underline; background-image: url(/assets/images/mist.png); color:#4f4646;}
    
    .menu ul li:hover ul li:hover ul {display:block; position:absolute; left:117px; top:0;}
    
    .menu ul li:hover ul li:hover ul.left {left:-120px;}






      • 26016
      • 561 Posts
      Hi,
      Sure thing. Note the underline part here. But I wouldn’t recommend it, though, because as written, all links in the dropdown will be underlined. I’d say skip it. Unless you want to learn a lot about the CSS cascade.

      .menu ul li:hover a { color:#4f4646; background-image: url(/assets/images/mist.png); text-decoration: underline;}
        MODx and Wordpress development
        Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4
        • 20096
        • 12 Posts
        but I do! I do want to learn about the cascade!

        I’ve tried the route of having them all underlined and it just looks sloppy.

        if not here. do you know of an exceptionally thorough resource?
          • 26016
          • 561 Posts
          As I recall, a lot of "Muddy’s" example menus were adapted from Stu Nicholls’ phenomenal menus. Part of that sheer awesomeness is a deep understanding of the cascade. Essentially, you need to be able to carry a whole lot of data in your head at the same time without getting lost. If you have a multi-level menu, and you want different styling at each level, hello cascade!

          Stu has doggedly tackled every imaginable type of CSS situation, and has phenomenal resources at his site:
          http://www.cssplay.co.uk/index.html
          It’s a lot to absorb, though.

          Although we all love to quickly search the web to find things out, whenever I get a really nasty problem, or to do any serious learning, it’s best for me to go back to the "bible", CSS Mastery:
          http://www.amazon.com/CSS-Mastery-Advanced-Standards-Solutions/dp/1430223979/ref=sr_1_3?ie=UTF8&qid=1291145716&sr=8-3
          Yes, it’s an actual book. OMG! SO totally old-school! smiley

          I also answer questions on a CSS forum, and more and more each day, people just want to be spoon-fed the answer rather than ever learning anything. Human nature, I guess.

          Good luck, D
            MODx and Wordpress development
            Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4
            • 3749
            • 24,544 Posts
            Quote from: samba at Nov 30, 2010, 01:46 PM

            I also answer questions on a CSS forum, and more and more each day, people just want to be spoon-fed the answer rather than ever learning anything. Human nature, I guess.

            Luckily, that never happens here. wink
              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting
              • 26016
              • 561 Posts
              Quote from: BobRay at Nov 30, 2010, 03:19 PM

              Quote from: samba at Nov 30, 2010, 01:46 PM

              I also answer questions on a CSS forum, and more and more each day, people just want to be spoon-fed the answer rather than ever learning anything. Human nature, I guess.

              Luckily, that never happens here. wink

              Hi Bob,
              Say, would you set up my ecommerce site, code and install 4 themes, and replicate the Superfish menu upside down, all for free, pretty please, so I can chill out and stare at the wall?
              I KNEW you’d say yes. smiley
              Cheers, Dave
                MODx and Wordpress development
                Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4
                • 20096
                • 12 Posts
                thanks for the encouragement. Time to hit the books!
                  • 3749
                  • 24,544 Posts
                  Quote from: samba at Nov 30, 2010, 06:36 PM

                  Hi Bob,
                  Say, would you set up my ecommerce site, code and install 4 themes, and replicate the Superfish menu upside down, all for free, pretty please, so I can chill out and stare at the wall?
                  I KNEW you’d say yes. smiley
                  Cheers, Dave

                  LOL.

                  Actually, one of the things I love about the community here (and what first attracted me to MODx) is that that the percentage of people who want spoon-feeding is very small, and the percentage of people who want to both learn and help others is unusually high. smiley
                    Did I help you? Buy me a beer
                    Get my Book: MODX:The Official Guide
                    MODX info for everyone: http://bobsguides.com/modx.html
                    My MODX Extras
                    Bob's Guides is now hosted at A2 MODX Hosting
                    • 26016
                    • 561 Posts
                    Quote from: BobRay at Nov 30, 2010, 11:00 PM

                    Quote from: samba at Nov 30, 2010, 06:36 PM

                    Hi Bob,
                    Say, would you set up my ecommerce site, code and install 4 themes, and replicate the Superfish menu upside down, all for free, pretty please, so I can chill out and stare at the wall?
                    I KNEW you’d say yes. smiley
                    Cheers, Dave

                    LOL.

                    Actually, one of the things I love about the community here (and what first attracted me to MODx) is that that the percentage of people who want spoon-feeding is very small, and the percentage of people who want to both learn and help others is unusually high. smiley
                    Bob,
                    That’s true. Along with the CSS forum, I also answer questions on the Wordpress forum, and it’s REALLY getting bad there. That’s a downside of their massive popularity. MODx should take heed - growing slowly might be good. smiley

                    A small sample of the typical nonsense there:
                    (actually the same stuff could apply to almost any popular open-source system)

                    Hordes have really bad hosting, the cheapest possible, and are stunned when it sucks. Can you say Godummy? And many hosts are worse than that.

                    Many people wanting a site have no tech skills whatsoever, and they’re too cheap to pay a developer or programmer.

                    One-click installs allow the complete neophyte to install WP, but once it’s there in its /blog folder, they wouldn’t know how to move it to save their life, they don’t know how to use it, and of course have no idea where or what their database is.

                    Because it’s free, people also expect free tech support, and fast! And some are rude when they don’t get a response, or even rude when they’re asking the question.

                    Many will not read even the smallest amount of information to figure out how to do anything.

                    The most tragic cases are the questions that are in very broken English, so they’re pretty much screwed.
                      MODx and Wordpress development
                      Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4