cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

            
               <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>
 </ul>

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

<p>
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. 
</p>    
</div>  <!-- end panel 1 -->


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

<p>
 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.
 
</p>    
</div> <!-- end panel 2 -->


<div id="panel3" class="panel">
<p>
 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.

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

<div id="panel4" class="panel">
<p>
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.

</p>
</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() {
    
    //alert('here');
	
  $('.tabs a').click(function(){
  
     $('.panel').hide();
     $('.tabs a.active').removeClass('active');
     $(this).addClass('active');
     
     var panel = $(this).attr('href');
     $(panel).fadeIn(1000);
     
     return false;  // prevents link action
    
  });  // end click 

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





            
          
!
999px
Loading ..................

Console