We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • Can you not just use the cascade to specify two backgrounds using one "active" class?

    li.active { background: transparent url(img1.png) no-repeat top left; padding ... }
    li.active a { background: transparent url(img2.png) no-repeat top right; padding ... }


    Seems like less code to me. wink
      Ryan Thrash, MODX Co-Founder
      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
    • Quite likely. I frequently tend to be a bit verbose in favor of clarity. Makes it a lot easier to come back next week (or in my case, in five minutes) and figure out what’s going on.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 4095
        • 372 Posts
        Thanks heaps, still learning CSS never mind jumping into PHP and API for Snippets. Thats sorted out the CSS for my menu, now just to jazz it up a bit.

        Cheers smiley

        PS thanks for all your efforts on MODx, plugin and snippets so newbies witn no skills like me can actually make a good looking functional website.
          [img]http://www.emanz.ac.nz/assets/images/logo/emanz-icon_16x16.gif[/img] Emergency Management Academy of New Zealand [br] http://www.emanz.ac.nz[br][br]MODx Sandbox Login: sandbox Password: castle [br]
          Admin Sandbox Login: sandbox Password: castle
          • 33337
          • 3,975 Posts
          Quote from: briggsys at Aug 06, 2005, 11:41 AM

          PS thanks for all your efforts on MODx, plugin and snippets so newbies witn no skills like me can actually make a good looking functional website.

          You are welcome brigsys ! smiley

          Have a nice stay with us

          Best regards,

          zi
            Zaigham R - MODX Professional | Skype | Email | Twitter

            Digging the interwebs for #MODX gems and bringing it to you. modx.link
            • 4095
            • 372 Posts
            which is being refactored (by allowing a lot more configuration parameters, such as id, class, and style selectors for each list, element, and/or link, optional surrounding divs, etc.) for release as the default menu building snippet in the next release, if you’re interested in that specific menu behavior:

            Awesome, one thing that would be really cool, is to have an optional field that allows me to set the "accesskey" so I can comply with accessability standards.

            I’m currently trying to figure a way to do this with the current menu. Problem is the menu is dynamic, so unless its given when the item is created, you don’t have anything unique to apply the CSS to.

            [EDIT] Oh and icons for different menu items too smiley
              [img]http://www.emanz.ac.nz/assets/images/logo/emanz-icon_16x16.gif[/img] Emergency Management Academy of New Zealand [br] http://www.emanz.ac.nz[br][br]MODx Sandbox Login: sandbox Password: castle [br]
              Admin Sandbox Login: sandbox Password: castle