/* Style the buttons that are used to open and close the accordion panel */ .ContractResultsAccordion { background-color: #eee; color: #444; cursor: pointer; padding: 12px; width: 100%; text-align: left; border: none; outline: none; transition: 0s; } /* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */ .active, .ContractResultsAccordion:hover { background-color: #ccc; } .ContractResultsPanel { padding: 0 18px; background-color: white; display: none; overflow: hidden; border:1px solid #ccc; }