/* Style the buttons that are used to open and close the accordion panel */ .accordion { color: #444; cursor: pointer; padding: 16px; width: 100%; text-align: left; border: 0px; border-bottom: 1px solid #aaa; outline: none; transition: 0.4s; font-size: 16px; font-weight: bold; /* Add a pseudo-element to show the plus-minus icon */ position: relative; background: transparent; } /* Change the background color of the button when it is active */ .active, .accordion:hover { background-color: #ccc; } /* Style the plus-minus icon */ .accordion::before { content: "+"; position: absolute; top: 50%; right: 25px; transform: translateY(-50%); font-size: 24px; font-weight: bold; transition: transform 0.4s; } /* Change the plus-minus icon when the accordion panel is open */ .active::before { content: "-"; transform: translateY(-50%) rotate(45deg); } /* Style the accordion panel. Note: hidden by default */ .panel { padding: 0 18px; background-color: transparent; overflow: hidden; transition: max-height 0.2s ease-out; max-height: 0; } /* Show the accordion panel when the button is active */ .active + .panel { max-height: 1000px; } Ultimé Magnesium Tablets are specifically formulated to: Aid healthy bone development Maintain bone density Help reduce occurrence of muscle cramp when dietary intake is inadequate Support muscle function Support muscle health Relieve muscle soreness when dietary intake is inadequate Assist teeth development DIRECTIONS FOR USE Take 1 tablet twice daily. WARNING If symptoms persist, consult a health professional. Contains magnesium, which may have a laxative effect or cause diarrhoea. Contains sulfites and soya bean products. Always read the label and follow the directions for use. INGREDIENTS EACH TABLET CONTAINS: Colecalciferol 12.5 micrograms Heavy magnesium oxide 302.64mg Equivalent: magnesium 182.5mg Magnesium amino acid chelate 25mg Equivalent: magnesium 5mg Magnesium citrate 86.21mg Equivalent: magnesium 12.5mg Magnesium 200mg QUANTITY 60 Tablets Made in Australia // Get all the accordion buttons var acc = document.getElementsByClassName("accordion"); // Loop through all the buttons and add a click event listener for (var i = 0; i < acc.length; i++) { acc[i].addEventListener("click", function() { // Toggle the active class on the button this.classList.toggle("active"); }); }