Hello,
I have been working on this dropdown accordion to host an unorderd list of our customers by market. I’ve gotten it pretty close to where I need but my issue is that I cannot get the overflow setting to scroll and the display to be a drop down clickable display. What I want is the accordion to be a button with a drop down menu with a scrolling sidebar. I will attach my custom HTML code below:
<div class=“accordion”>
<div class=“accordion-section”>
<a class=“accordion-section-title” href=“#accordion-1”>
Phoenix Participants List
</a>
<div id=“accordion-1” class=“accordion-section-content”>
<p>
<ul>Ak-Chin Southern Dunes</ul>
<ul>Antelope Hills- North</ul>
<ul>Antelope Hills- South</ul>
<ul>Arizona Grand Resort</ul>
<ul>ASU Karsten</ul>
<ul>Augusta Ranch</ul>
<ul>Camelback- Ambiante</ul>
<ul>Camelback- Padre</ul>
<ul>Coldwater Golf Club</ul>
<ul>Continental Golf Club</ul>
<ul>Continental Country Club</ul>
<ul>Copper Canyon Golf Club</ul>
<ul>Coyote Lakes Golf Club</ul>
<ul>Eagle Mountain</ul>
<ul>Golf Club at Estrella</ul>
<ul>Grayhawk Golf Club- Raptor</ul>
<ul>Grayhawk Golf Club- Talon</ul>
<ul>Kokopelli</ul>
<ul>Legend at Arrowhead</ul>
<ul>Lone Tree Golf Club</ul>
<ul>Longbow Golf Club</ul>
<ul>Lookout Mountain Golf Club</ul>
<ul>McDowell Mountain Golf Club</ul>
<ul>Palm Valley Golf Course-Lake</ul>
<ul>Papago Golf Course</ul>
<ul>Poston Butte Golf Club</ul>
<ul>Quintero Golf Club</ul>
<ul>Raven Golf Club- Phoenix</ul>
<ul>San Marcos Golf Resort</ul>
<ul>Scottsdale Silverado</ul>
<ul>Sedona Golf Resort</ul>
<ul>Starfire Golf Club</ul>
<ul>Stonecreek Golf Club</ul>
<ul>Sunland Springs Village</ul>
<ul>Superstition Springs Village</ul>
<ul>Superstition Springs Golf Club</ul>
<ul>Talking Stick- North</ul>
<ul>Talking Stick- South</ul>
<ul>The Phoenician</ul>
<ul>The Westin Kierland Resort</ul>
<ul>TPC® Scottsdale- Champions</ul>
<ul>TPC® Scottsdale- Stadium</ul>
<ul>Trilogy at Vistancia</ul>
<ul>Troon North- Monument</ul>
<ul>Troon North- Pinnacle</ul>
<ul>Verrado Golf Club</ul>
<ul>We Ko Pa- Cholla</ul>
<ul>We Ko Pa- Saguaro</ul>
<ul>Whirlwind- Cattail</ul>
<ul>Whirlwind- Devil’s Claw</ul>
<ul>JW Marriott® Wildfire- Faldo</ul>
<ul>JW Marriott® Wildfire- Palmer</ul>
<ul>The Classic Club</ul>
</p>
</div><!--end .accordion-section-content-->
</div><!--end .accordion-section-->
</div><!--end .accordion-->
This is my CSS Styling for the accordion:
.accordion, .accordion * {
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing:border-box;
}
.accordion {
/*box-shadow:0px 1px 3px rgba(0,0,0,0.25); Comment out by HS support 4/13/17 */
border-radius:3px;
background:#ffffff;
position: absolute;
}
/*----- Section Titles -----*/
.accordion-section-title {
width:100%;
padding:5px;
display:inline-block;
border-radius:15px 15px 15px 15px; /*15px 15px 15px 15px; HS SUPPORT*/
border-bottom:1px solid #1a1a1a;
background:#29cdcb;
transition:all linear 0.15s;
/* Type */
font-size:1.200em;
font-weight:bold;
text-align: center;
text-shadow:0px 1px 0px #1a1a1a;
color:#fff;
text-decoration:none;
}
.accordion-section-title.active, .accordion-section-title:hover {
background:#800000;
color:#fff;
/* Type */
text-decoration:none;
}
.accordion-section:last-child .accordion-section-title {
border-bottom-color:white;
padding-bottom:2px;
}
/*----- Section Content -----*/
.accordion-section-content {
height: 500px;
overflow: scroll;
padding: 0px;
display: block;
}
The only time I can get the accordion-content to not display when you load the page is to have the display set to none, but then the overflow property becomes null.
Any help would be great… Thank you!




