Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

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.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <div class="wrapper">
	<input type="radio" name="tab" id="tab-1" checked>
	<label for="tab-1">Tab-1</label>
	<input type="radio" name="tab" id="tab-2">
	<label for="tab-2">Tab-2</label>
	<input type="radio" name="tab" id="tab-3">
	<label for="tab-3">Tab-3</label>	
	<div class="content">
		<article class="tab-1">
			Lorem ipsum dolor sit amet, consectetur adipisicing elit. Animi cum fuga quas quibusdam ea minima nemo illo repudiandae totam officia!
		<article class="tab-2">
			Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quos, ipsum?</article>
		<article class="tab-3">
			Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore numquam, itaque laboriosam debitis temporibus incidunt, dicta dignissimos sapiente voluptatibus iusto. Voluptate, laborum libero odio nostrum consequuntur aliquid molestiae soluta optio.
	<br class="clear:both" />
</div><!-- //wrapper -->


                * {

body {
	background-color: #2c3e50;
	font-family: Arial;
	font-size: 18px;
.wrapper {
	width: 80%;
	margin: 100px auto;
	label {
		float: left;
		margin-right: 5px;
		display: block;
		padding: 10px 40px;
		background-color: #ecf0f1;
		border-radius:20px 20px 0 0;
	input {
		display: none;
		&:checked + label {
			background-color: #e74c3c;
	input[id="tab-1"]:checked ~ .content .tab-1,
	input[id="tab-2"]:checked ~ .content .tab-2,
	input[id="tab-3"]:checked ~ .content .tab-3{
		display: block;
	.content {
		position: relative;
	article {
		width: 100%;
		padding: 70px 50px;
		position: absolute;
		top: 0;
		left: 0;
		background-color: #fff;
		display: none;
		min-height: 200px;		
		border-top:5px solid #e74c3c;
		border-radius:0 10px 10px 10px;