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.

            
              <div class="header">
	The Best Header You've Ever Seen
</div>
<div class="tabs">
	<div class="tab">
		<input type="radio" id="tab-one" name="tab-group" checked>
		<label for="tab-one">Tab One</label>
		<div class="content">
			<h2>This is the First Tabbed Area</h2>
			<p>
				Look at all this space. You could put so much stuff here!<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />And here!
			</p>
		</div>
	</div>
	<div class="tab">
		<input type="radio" id="tab-two" name="tab-group">
		<label for="tab-two">Tab Two</label>
		<div class="content">
			<h2>This is the Second Tabbed Area</h2>
			<p>Oh look, more filler text.</p>
			<p>
				Oh look, even <i>more</i> filler text.
			</p>
		</div>
	</div>
	<div class="tab">
		<input type="radio" id="tab-three" name="tab-group">
		<label for="tab-three">Tab Three</label>
		<div class="content">
			<h2>I Ran Out of Things to Type</h2>
			<p>I wrote the fourth tab before this one.</p>
		</div>
	</div>
	<div class="tab">
		<input type="radio" id="tab-four" name="tab-group">
		<label for="tab-four">The Final Tab &nbsp;D:</label>
		<div class="content">
			<h2>This is it</h2>
			<p>You've made it to the end.</p>
			<p>What will you do with your life now?</p>
		</div>
	</div>
</div>
            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Signika:600)
@import url(https://fonts.googleapis.com/css?family=Fjalla+One)

$rough: 'Fjalla One', sans-serif
$loose: 'Signika', sans-serif
$beige: #E9E0D6
$burnt_sienna: #EB7260
$blue: #3A9AD9

body
	margin: 0
	background-color: $beige

.header
	padding: 50px
	font-family: $loose
	font-size: 4.5em
	background-color: $burnt_sienna
	text-align: center
	color: #FFF

.tabs
	display: flex
	justify-content: space-around

.tab
	text-align: center
	background-color: $burnt_sienna
	width: 100%

.tab > input
	display: none

.tab > label
	display: inherit
	font-family: $rough
	font-size: 26px
	color: #FFF
	padding: 5px
	background-color: $burnt_sienna
	border-radius: 5px 5px 0 0
	transition: 0.3s
	-moz-transition: 0.3s
	-webkit-transition: 0.3s

.tab > input:checked ~ label
	background: $beige
	color: $burnt_sienna

.tab > input:not(:checked) ~ label:hover
	background-color: #EA8E7E
	cursor: pointer

.tab > input:not(:checked) ~ label ~ .content
	visibility: none
	z-index: 0
	opacity: 0
	top: -100000px //CSS won't let me hide it and have it not still affect the page height (╯°□°)╯︵ ┻━┻

.content
	background: $beige
	padding: 10px
	position: absolute
	left: 0
	right: 0
	transition: opacity .2s ease-in-out
	-moz-transition: opacity .2s ease-in-out
	-webkit-transition: opacity .2s ease-in-out

.content h2
	color: $blue
	font-family: $loose
	font-size: 3em

.content p
	font-family: sans-serif
	font-size: 1.2em
	color: #222
            
          
!
999px
Loading ..................

Console