Results 1 to 2 of 2

Thread: Annimated Collapse overrules CSS functions

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

    Exclamation Annimated Collapse overrules CSS functions

    1) Script Title: Animated Collapse

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...edcollapse.htm

    3) Describe problem:

    Hi all,
    I've got the animated collapse script perfectly running but it seems to overrule some parts of my CSS style sheets. The :active function is not working anymore.
    I have a layer that has an onclick function which changes the background of this layer. Then it's supposed to be active, but, it isnt. So the code below doesnt work:
    Code:
    .layer1:active {background: url(../images/layer1_active.gif) repeat-x top left;
    But the :hover function IS working. So the code below does work as supposed.
    Code:
    .layer1:hover {background: url(../images/layer1_hover.gif) repeat-x top left;
    How can I make sure that when I select an other layer by clicking it, the active layer goes back to it's original state? It seams to me that it's not staying active in the animated collapse.

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

    Default

    By layer, do you mean the toggler control, or the DIV it's animating? The script doesn't overwrite any preexisting CSS rules, so if this is happening, it should just be the fact that the layer loses focus (hence no longer active) whenever you click on the toggler control.
    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
  •