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

Quick-add: + add another resource

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.

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.

            
              <!-- Best to be comined with Google Material-Icons --> 

<!-- Box with Class, ID  and inClick-Function -->
<div onClick="HideShow()" class="Medium" id="Dropdown">
			<!-- Orange Header of the Dropdown-Element -->
            <div class="MediumHeader">
                <h4>Heading</h4>
                <p class="Anmerkung">Date: 16th of September 2017</p>
                <hr>
                <p>Subheading, Detail</p>
            </div>
			<!-- White Body of the Dropdown-Element -->
            <div class="MediumDetails">
                <h6>Heading</h6>
                <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p>
            </div>
        </div>
            
          
!
            
              /* Best to be comined with Google Material-Icons */ 
html {font-size: 1em;
      font-family: Arial, sans-serif;
      font-weight: 300;
      color: lightgray; }

body {width: 800px;
	  /* Gray background-color */
	  background-color: #505050;
      margin-left: auto;
      margin-right: auto; }

p, li, td {font-size: 90%; 
           line-height: 1.4; }

h1, h2, h3, h4, h5, h6 {font-weight: 700; }

h1 {font-size: 1.8em;
	line-height: 1;
	margin: 0px; }

h2 {font-size: 1.6em;
	line-height: 1;
	margin: 0px; }

h3 {font-size: 1.4em;
	line-height: 1;
	margin: 0px; }

h4 {font-size: 1.3em;
	line-height: 1;
	margin: 0px; }

h5 {font-size: 1.2em;
	line-height: 1;
	margin: 0px;}

h6 {font-size: 1.1em;
	line-height: 1;
	margin: 0px;}

hr {border: none;
    width: 80%;
    height: 2px;
    background-color: white;
    margin-right: 20%; }

.Anmerkung {font-size: 80%; 
            color: rgba(255,255,255, 0.6);
            margin-top: 2px;
            margin-bottom: -4px; }

/* Layout of the Dropdown-Element — with the Status: hidden */
.Medium {margin-left: auto;
		 margin-top: 50px; 
         background-color: white;
         border-radius: 0px 25px;
         padding-bottom: 15px;
         height: 89px;
         overflow: hidden; 
         margin-bottom: 20px;
         box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.2);
         transition: all 0.6s ease-in !important; }

.MediumHeader {padding: 15px 25px;
               color: white; 
               background-color: lightcoral; 
               border-radius: 0px 25px; }

/* Mouse-Interaction to show, clickable Content */
#Dropdown:hover {cursor: pointer; }

/* Properties of the Dropdown-Body */
.MediumDetails {margin-left: 25px;
                margin-top: 15px;
                margin-right: 25px; 
                color: black;
				transition: all 0.6s ease-in !important; }

.MediumLinksDetails h6 {margin-bottom: 5px; }

/* Class to be added/removed, when Status changed */
/* Adding the Class on showing the Dropdown-Body */
.DropdownShow {height: 290px;
			   transition: all 0.6s ease-in !important; }
            
          
!
            
              //Variable for Current-Visability-Status
var hidden = true; 

//Function
function HideShow() {
			//Checking current Status
            if (hidden === true) {
				//When DrodownBody is hidden, then add the 					class="DrodownShow"
                document.getElementById('Dropdown').className += ' DropdownShow';
				//Update Status
                hidden = false;
			//Checking current Status
            } else if (hidden === false) {
				//When DrodownBody is shown, then replace all
                document.getElementById('Dropdown').className += 'Medium';
				//Update Status
                hidden = true; 
            }
        }
            
          
!
999px
Loading ..................

Console