123

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              
<html class="no-js" lang="en">
	<head>
    	<meta charset="utf-8" />
    	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
    	<title>Testing Accordion Side-Nav with Icons</title>
  	</head>
  	<body>
       
	<nav class="top-bar" data-topbar>
		<ul class="title-area">
			<li class="name"></li>
          	<li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
		</ul>
          
		<section class="top-bar-section">
			<!-- Right Nav Section -->
<ul class="center-buttons">
				<li><a href="#"><i class="fa fa-home"></i></a></li>
				<li class="has-dropdown"><a href="#">Link 1</a>
					<ul class="dropdown">
                		<li><a href="#">Sub Link 1</a></li>
                    	<li><a href="#">Sub Link 2</a></li>
					</ul>
				</li>
                <li class="has-dropdown"><a href="#">Link 2</a>
   	  <ul class="dropdown">
                    	<li><a href="#">Sub Link 1</a></li>
                        <li><a href="#">Sub Link 2</a></li>
                        <li><a href="#">Sub Link 3</a></li>
					</ul>
				</li>
				<li class="has-dropdown"><a href="#">Link 3</a>
	  <ul class="dropdown">
        						<li><a href="#">Sub Link 1</a></li>
        <li><a href="#">Sub Link 2</a></li>
        <li><a href="#">Sub Link 3</a></li>
        <li><a href="#">Sub Link 4</a></li>
					</ul>
				</li>
				<li class="has-dropdown"><a href="#">Link 4</a>
	  <ul class="dropdown">
  						  <li><a href="#">Sub Link 1</a></li>
    <li><a href="#">Sub Link 2</a></li>
    <li><a href="#">Sub Link 3</a></li>
					</ul>
				</li>
	  <li><a href="#">Link 5</a></li>
			</ul>
		</section>
	</nav>
    
    <div class="page-title-bg">
    	<div class="row">
        	<div class="large-12 columns">
        		<h2 class="page-heading">Title</h2>
        	</div>
        </div>
    </div>
    
    <div class="breadcrumbs-bg">    
        <div class="row">
            <div class="large-12 columns">
                <nav class="breadcrumbs" role="menubar" aria-label="breadcrumbs">
                    <li role="menuitem"><a href="#">Home</a></li>
                    <li role="menuitem" class="current"><a href="#">Section</a></li>
                </nav>
            </div>
        </div>
	</div>

	<div class="row">
    	<div class="medium-4 large-4 columns" id="secondary-nav">
        	<ul class="accordion" data-accordion role="tablist">
            	<li class="accordion-navigation active">
					<a href="#panel1d" role="tab" id="panel1d-heading" aria-controls="panel1d">Accordion Side-Nav 1 Long Title</a>
                    <div id="panel1d" class="content active" role="tabpanel" aria-labelledby="panel1d-heading">
                    	<ul class="side-nav" role="navigation" title="Booklists">
                        	<li role="menuitem"><a href="#">Side-nav link 1</a></li>
                        	<li role="menuitem"><a href="#">Side-nav link 2</a></li>
                        	<li role="menuitem"><a href="#">Side-nav link 3</a></li>
                    	</ul>
                    </div>
                </li>
                <li class="accordion-navigation">
                    <a href="#panel2d"  role="tab" id="panel2d-heading" aria-controls="panel2d">Accordion Side-Nav 2</a>
                    <div id="panel2d" class="content" role="tabpanel" aria-labelledby="panel2d-heading">
                      	<ul class="side-nav" role="navigation" title="Health Care Information">
                        	<li role="menuitem"><a href="#">Side-Nav 1</a></li>
                        	<li role="menuitem"><a href="#">Side-nav 2</a></li>
                            <li role="menuitem"><a href="#">Side-nav 3</a></li>
                    	</ul>
                    </div>
                </li>
                <li class="accordion-navigation">
                    <a href="#panel3d" role="tab" id="panel3d-heading" aria-controls="panel3d">Accordion Side-Nav 3</a>
                    <div id="panel3d" class="content" role="tabpanel" aria-labelledby="panel3d-heading">
                      	<ul class="side-nav" role="navigation" title="New Trainee Information">
                        	<li role="menuitem"><a href="#">Side-nav 1</a></li>
                        <li role="menuitem"><a href="#">Side-nav 2</a></li>
                        <li role="menuitem"><a href="#">Side-nav 3</a></li>
                      </ul>
                    </div>
                </li>
            </ul>                    
		</div>
                                
		<div class="medium-8 large-8 columns">
			<h3>Heading 3</h3>
            <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus in dapibus ligula. Suspendisse eros lacus, lacinia vitae arcu eget, dictum interdum justo. Proin sapien libero, ultrices sit amet magna vitae, ultrices rhoncus purus. Vestibulum in erat et velit sagittis luctus. Nunc varius ligula sit amet dictum tristique. Nulla pharetra mi non feugiat finibus. Curabitur placerat felis sit amet est vestibulum bibendum. Praesent dapibus sagittis nibh, id aliquam est pellentesque at. Integer lacinia ipsum ex, nec congue lectus mattis id.</p>

            <p>Suspendisse cursus, dui ut mollis suscipit, velit leo feugiat purus, ut ullamcorper urna metus vitae mauris. Aliquam dignissim iaculis sem, et dictum elit placerat at. Ut lacus justo, luctus sit amet erat vel, lacinia egestas enim. Phasellus nisi ex, consequat quis ultrices mattis, consequat et nulla. Vivamus posuere tempor aliquam. Phasellus vestibulum sodales dolor, at iaculis est accumsan nec. Pellentesque maximus arcu non dui hendrerit, vitae convallis arcu viverra. Aenean vulputate risus vel elit ullamcorper, eu congue leo facilisis. Phasellus ullamcorper leo massa, ac pulvinar enim varius non. Duis ac velit nec lorem maximus auctor. Mauris viverra nisi sed felis pulvinar faucibus. Phasellus facilisis semper fringilla. Nulla id erat laoreet, consectetur felis at, tristique nisi.</p>
 		</div>
	</div>
                            
	<div class="icon-bar-bg">                                                   
        <div class="row">
            <div class="large-12 columns">
                <div class="icon-bar four-up">
                    <a class="item" href="#"><i class="fa fa-calendar"></i><label>Dates &amp; Events</label></a>
                    <a class="item" href="#"><i class="fa fa-file-text"></i><label>Documents &amp; Forms</label></a>
                    <a class="item" href="#"><i class="fa fa-phone"></i><label>Contact Us</label></a>
                    <a class="item" href="#"><i class="fa fa-link"></i><label>Related Links</label></a>
                </div>
            </div>
        </div>
    </div>
             
	<div class="footer">
    	<div class="row">
			<div class="large-12 columns">
				<p>COPYRIGHT © <script type="text/javascript">var d = new Date();var curr_date = d.getDate();var curr_month = d.getDate();var curr_year = d.getFullYear();document.write(" 1998-"+ curr_year + " ");</script></p>
			</div>
		</div>
	</div>
	</body>
</html>
            
          
!
            
              /* ACCORDION */
.accordion .accordion-navigation { 
    margin-bottom: 1px !important; 
}
.accordion .accordion-navigation > a { 
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    color: #141455; 
}
.accordion-navigation > a:after {
    content: "\f055";
	  font-family: FontAwesome;
    display: block;
    float: right;
    
}
.accordion-navigation.active > a:after {
    content: "\f056";
	font-family: FontAwesome;
}

#secondary-nav .accordion .accordion-navigation > a { 
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    color: #141455; 
    background-color: #f2efeb;
    border: 1px solid #bdae99; 
    text-transform: uppercase; 
    padding: 0.5rem;
}
#secondary-nav .accordion .accordion-navigation > .content { 
    padding: 0.25rem; 
}
            
          
!
            
              $(document).foundation();
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console