Results 1 to 2 of 2

Thread: accordion glossymenu toggleclass does not work

  1. #1
    Join Date
    Aug 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default accordion glossymenu toggleclass does not work

    I want to use these classes in the Accordion Glossymenu
    toggleclass: ["collapsed", "expanded"]
    to control the layout of the collapsed and expanded menu's.

    I just want to have different text colours but cannot get this to work with classes like these:

    .glossymenu a.expanded{
    color: #FF0000;
    }

    .glossymenu a.collapsed{
    color: #00FF00;
    }

    The first only acts like an "active" tag, so it turns red for a short in stead of remaining red after expanding.

    Is this a bug?

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Warning: Please include a link to the DD script in question in your post, in this case: Glossy Accordion Menu. See this thread for the proper posting format when asking a question.

    There might be some CSS specificity at play here causing others styles you've defined for the same links to override what you've specified above, since it's pretty weak specificity wise. To test this, try adding "!important" to the mix:

    Code:
    .glossymenu a.expanded{
    color: #FF0000 !important;
    }
    
    .glossymenu a.collapsed{
    color: #00FF00 !important;
    }
    DD Admin

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •