We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22629
    • 194 Posts
    I’m looking for the parameter required to style the individual <LI> items with a class="" attribute.
    The only options I’ve found are topdivClass which wraps the top-level <UL> in <DIV> and subdivClass which styles the sub-level <UL>s in a <DIV>.

    There is the option to style the <LI>s with a "here" or "last" class, but not to style all the <LI>s, regardless.

    Is this something I can do with DropMenu?
      Andy Shellam | www.networkmail.eu | @Pandy06269 @NetworkMail

      modx Revolution 2.2.6
      Windows 2012 | IIS 8 | php 5.4.11 | MySQL 5.5.29

      Content-Managed Websites Built on MODX
      • 8461
      • 205 Posts
      Why would you need to style all Li’s by applying a class?

      If you apply a class or div to the UL, then can you not just use .topdiv li {} to control /style your Li elements inside the UL class. I would be interested to know why you need to do this.
        • 22629
        • 194 Posts
        Ah, great idea! Never thought of that embarrassed

        The reason being, I want a similar look to the listing in the middle of this site:

        http://journal.media-culture.org.au/

        So using CSS, I can set the background as a coloured block, no repeat, and aligned left, then apply a bottom border.

        If this is only applied to the DIV or UL, you just get one line and one coloured block against the whole list, rather than the correct look of a block and border per LI item.
          Andy Shellam | www.networkmail.eu | @Pandy06269 @NetworkMail

          modx Revolution 2.2.6
          Windows 2012 | IIS 8 | php 5.4.11 | MySQL 5.5.29

          Content-Managed Websites Built on MODX