We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27708 MODX Staff
    • 2,502 Posts
    IDs and classes are one reason I have issue with Wayfinder and several other snippets using classes for parameters as often times they ought to be IDs. You rarely have two navigation systems on a page with a common class. It makes more sense to have an explicitly identified container so you don’t have problems like fruitwerks. My typical thought is if it will ever only appear on a page once it gets an ID and if it is possibly going to just have contextual differences I use a class.

    As with MODx, Web design is easy to learn and hard to master. smiley
      Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. Blog ✦ Twitter ✦ LinkedIn ✦ GitHub
      • 33372
      • 1,611 Posts
      I always wrap every unique element in an container with an id and refer to elements and classes within it as #menu ul.nav li (for example) because even though I didn’t know exactly how to calculate the specificity value of each rule (until now - thanks!) I knew that I never had to worry about it if I did that...
        "Things are not what they appear to be; nor are they otherwise." - Buddha

        "Well, gee, Buddha - that wasn't very helpful..." - ZAP

        Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
        • 27708 MODX Staff
        • 2,502 Posts
        I usually do the same thing but many HTML/CSS standards wonks (and sometimes me) like to use as few divs as possible when valid block level containers like UL should suffice.

        For the "Offending" snippets, I’ll submit a patch I guess and stop complaining. smiley
          Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. Blog ✦ Twitter ✦ LinkedIn ✦ GitHub
          • 33372
          • 1,611 Posts
          Complaints accompanied by suggestions are always helpful. Even just pointing out a potential problem can speed its resolution. As my mom always says: "the squeaky wheel gets the grease".
            "Things are not what they appear to be; nor are they otherwise." - Buddha

            "Well, gee, Buddha - that wasn't very helpful..." - ZAP

            Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
            • 10226
            • 412 Posts
            Haha, thanks for the info, I knew there was something else going on there. I validated my CSS last night and I’m not in the boat you mention, but now I know that something is inherited... just need to look harder.

            Thanks!