accordion class

Tshepo Rabolila asked on July 1, 2014 04:44

How do you assign a different class for each pane within an accordion webpart?

Recent Answers


Adam Gitin answered on July 1, 2014 05:20

Hi,

You could edit the ZONE properties of first pane - > and go to:

1) Zone container -> Container -> New

code should be:

<div class="<%ContainerCssClass%}"> .. webpart .. </div>

2) Zone container -> Container CSS class -> "add you css class here"

On the other panes you can reuse the container you just created, you just need to update the css class.

Hope this helps you.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.