/* 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é Nausea Relief Capsules are specifically formulated to: Decrease nausea Relieve morning sickness DIRECTIONS FOR USE Take 1 capsule twice daily. WARNING Advise your doctor of any medicine you take during pregnancy, particularly in your first trimester. Consult your health professional before use or if you experience the following symptoms tingling, burning, numbness and stop taking immediately. Always read the label and follow the directions for use. INGREDIENTS EACH CAPSULE CONTAINS: Pyridoxine hydrochloride 60.78mg Equivalent: pyridoxine 50mg Zingiber officinale rhizome Powder 300mg Equivalent: Zingiber officinale (Dry) 255mg Zingiber officinale rhizome Powder 15mg Equivalent: Zingiber officinale (Dry) 150mg QUANTITY 60 Capsules 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"); }); }