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


A Pen By Captain Anonymous

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.

              <div class="showmore-top showmore"></div>
<div id="people">
	<div class="content"></div>
<div class="showmore-bottom showmore"></div>

<!-- The problem is that if you press the upper one first, so that the #people is visible, and then press the bottom one, it wont't reset, so you have to press it again. 
Have a go yourself! :)
              #people {
	min-width: 960px;
	width: 100%;
	overflow: hidden;
  background: #222;
div.content {
  height: 500px;
  width: 500px;
  margin: 0 auto;

div.showmore-top, div.showmore-bottom {
	height: 50px;
	width: 350px;
	cursor: pointer;
	text-align: center;
	margin: 0 auto;
	background-color: #a1432a;
	box-shadow: inset 0 -3px 10px #6f2815;

	color: #d0c5a5;
	font-family: 'QuadraatWeb-Bold';
	text-transform: uppercase;
	text-shadow: 0 1px 1px #111;
	font-size: 20px;

div.showmore-top {
	border-top-left-radius: 15px;
	border-top-right-radius: 15px;

div.showmore-bottom {
	margin: 0px auto 30px;
	border-bottom-left-radius: 15px;
	border-bottom-right-radius: 15px;
              	var divh = document.getElementById('people').offsetHeight;
document.getElementById("people").style.height = "0px";
    height: divh
    height: ['0px', 'swing']
Loading ..................