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="header">
	The Best Header You've Ever Seen
<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>
				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!
	<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>
				Oh look, even <i>more</i> filler text.
	<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 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>
              @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

	margin: 0
	background-color: $beige

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

	display: flex
	justify-content: space-around

	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 (╯°□°)╯︵ ┻━┻

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