Linking to Headers within Accordions

2 Kommentare

  • Dan Ross
    Community Moderator

    Hey Verity,

    Are you using something like Bootstrap to make the accordions? If so, what version?

    Do you have a sample of the code you're using? 

    0
  • Verity Stanford-Tuck

    Hi Dan, We aren't using bootstrap, this is the code we use for accordions...

    <div class="accordion accordion--default">

      <div class="accordion__item">

        <div class="accordion__item-title">

          <strong>ACCORDION ITEM 1 HEADING</strong>    </div>

        <div class="accordion__item-content">

          <p>ACCORDION ITEM 1 CONTENT</p>

        </div>

      </div>

      <div class="accordion__item">

        <div class="accordion__item-title">

          <strong>ACCORDION ITEM 2 HEADING</strong>    </div>

        <div class="accordion__item-content"> 

    <p>ACCORDION ITEM 2 CONTENT</p>

    </div>

      </div>

      <div class="accordion__item">

        <div class="accordion__item-title">

          <strong>ACCORDION ITEM 3 HEADING</strong>    </div>

        <div class="accordion__item-content">

    <p>ACCORDION ITEM 3 CONTENT</p>

    </div>

      </div>

    </div>
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Powered by Zendesk