css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

               <div class="tabbedPanels">  <!-- begins the tabbed panels / wrapper-->
 <ul class="tabs">
  <li><a href="#panel1">Kevin</a></li>
  <li><a href="#panel2">Joan</a></li>
  <li><a href="#panel3">Al</a></li>
  <li><a href="#panel4">Teresa</a></li>

<div class="panelContainer">
<div id="panel1" class="panel">

In spite of this tragedy, Kevin desired to bring good out of it, by spreading the word about the need for organ donation, and by supporting others in support groups. Kevin was on a waiting list for a kidney transplant. 
</div>  <!-- end panel 1 -->

<div id="panel2" class="panel">

 Joan, Kevin's mother, was the first volunteer as a donor. Although she was a match, she was temporarily disqualified as a kidney donor at that time. Joan has coordinated Organ Donation Awareness Acitivities at her place of work.
</div> <!-- end panel 2 -->

<div id="panel3" class="panel">
 Al, a relative, began a crusade of providing friends and other relatives with this information, in the hopes of finding a kidney donor. Al was a match, but was temporarily disqualified as a kidney donor at that time.

</div>  <!-- end panel 3 -->

<div id="panel4" class="panel">
Teresa,  also a relative and a website developer, volunteered to develop the website in September 2007, in cooperation with Al, Kevin and Joan. The goal of the website is to provide information and support to those in similar situations.

</div>  <!-- end panel 4 -->

</div> <!-- end div class="panelContainer" or panel wrapper -->

</div> <!-- ends the tabbed panels / wrapper-->

              .tabbedPanels { width: 600px; 
                margin-top: 25px;

.panelContainer {
	clear: left;
	margin-bottom: 25px;
	border: 2px solid green;	
	background-color: #fff;
	padding: 10px;
	/* add height if you want equal panels */

/* reset ul defaults  */
.tabs {
	margin: 0;
	padding: 0;	
	list-style: none;	

/* set li properties  */
.tabs li {
   float: left;
   width: 75px;
	padding: 0;
	margin: 0;
        text-align: center;

/* all formatting goes inside 'a' */
.tabs a {
	display: block;
	text-decoration: none;
	color: #fff;
        font-weight: bold;
	padding:  8px;
	margin-right: 4px;  /* spaces out the tabs  */
	border: 2px solid green;
   border-top-right-radius: 5px;
   border-top-left-radius: 5px;
	background-color: green;
    margin-bottom: -2px;  /* negative margin will move it down
	                         to blend in with outer border  */

.tabs a.active {
	border-bottom: 2px solid white;
	background-color: #fff;
	color: #000;
        font-weight: bold;
 .panel img {
         margin-top: 10px;

.panel p  {
         margin-bottom: 0px;


$(document).ready(function() {
  $('.tabs a').click(function(){
     $('.tabs a.active').removeClass('active');
     var panel = $(this).attr('href');
     return false;  // prevents link action
  });  // end click 

     $('.tabs li:first a').click();
}); // end ready

🕑 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.
Loading ..................