Menu icon Foundation

My Posts

  • 3
    Replies
  • Styling the top bar

    By Christian Cruz

    Hello everyone, I am styling the top bar and I was wondering how to change the background color of the <a> element when navigating the dropdown menu? In this case, the <a> element ("The Ceremony") has the default black background. Couldn't find ... (continued)

    Last Reply by Sherry Bradford over 2 years ago


My Comments

Christian Cruz commented on Tom Ta's post over 5 years

Bumping this thread.
I am trying to do the same and found this "solution":

$(".accordion").on("click", "dd", function (event) {
$("dd.active").find(".content").slideToggle("slow");
$(this).find(".content").slideToggle("slow");
})
});

from this thread:
http://foundation.zurb.com/forum/posts/536-accordion-click

BUT, it causes a weird bug.
It doesn't collapse the previous div when expanding the others.
See for yourself and let me know if it works for you.

Posts Followed

No Content

Following

    No Content

Followers

My Posts


My Comments

You commented on Tom Ta's post over 5 years

Bumping this thread.
I am trying to do the same and found this "solution":

$(".accordion").on("click", "dd", function (event) {
$("dd.active").find(".content").slideToggle("slow");
$(this).find(".content").slideToggle("slow");
})
});

from this thread:
http://foundation.zurb.com/forum/posts/536-accordion-click

BUT, it causes a weird bug.
It doesn't collapse the previous div when expanding the others.
See for yourself and let me know if it works for you.

Posts Followed

No Content

Following

  • No Content

Followers

  • No Content