We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9995
    • 1,613 Posts
    I have the below navigation.
    When I roll over "diner" there is a border-bottom:5px.
    But when I roll over the subnav buttons the border below diner is gone.

    How can I keep this border when roll over the subnav?
    (I rather use css and not js)

    http://fiddle.jshell.net/fourroses666/Wwuz6/6/

    Some parent css setting possible?
    [ed. note: fourroses666 last edited this post 12 years, 7 months ago.]
      Evolution user, I like the back-end speed and simplicity smiley
      • 10208 ☆ A M B ☆
      • 1,780 Posts
      Using Wayfinder?

      Add to the call &parentClass=`yourClass`

        Frogabog- MODX Websites in Portland Oregon
        "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
        Having server issues? These guys have MODX Hosting perfected - SkyToaster
        • 3109 ☆ A M B ☆
        • 894 Posts
        Your problem is your applying the border to you a tag instead of your li.

        This was a quick fix but you might need to edit some of your other css.

        http://fiddle.jshell.net/Wwuz6/8/

        This tutorial can help you make css dropdown and it's very easy.

        Good Luck.
          Benjamin Marte
          Interactive Media Developer
          Follow Me on Twitter | Visit my site | Learn MODX
          • 9995
          • 1,613 Posts
          Ah, I forgot about the parentClass, thanks Frogabog!

          Thanks Ben, sounds logical smiley
          I really need to use the a tag thow and first will try the parentClass option.

            Evolution user, I like the back-end speed and simplicity smiley
            • 9995
            • 1,613 Posts
            nicé, together with the li its working smiley

            &parentClass=`roll`

            .nav li.roll:hover a{border-bottom:5px solid #ee7f01;}
              Evolution user, I like the back-end speed and simplicity smiley