Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <div id="pagewrap-tcw">
	<div id="header-tcw">
		<h1>3 Column Responsive</h1>
	</div>		
	<section id="content-tcw">
		<h2>1st Content Area</h2>
		<p>This page demonstrates a 3 column responsive layout, complete with responsive images and jquery slideshow.</p>
	</section>
	<section id="middle-tcw">
		<h2>2nd Content Area</h2>
		<p>At full width all three columns will be displayed side by side. As the page is resized the third column will collapse under the first and second. At the smallest screen size all three columns will be stacked on top of one another.</p>
		<p>Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</p>
	</section>
	<aside id="sidebar-tcw">
		<h2>3rd Content Area</h2>
		<p>Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.</p>
		<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p>
		<p>Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.</p>
	</aside>
	<div id="footer-tcw">
		<h2>Footer</h2>
		<p>Footer text</p>
	</div>
</div>
              
            
!

CSS

              
                #pagewrap-tcw {
	padding: 5px;
	width: 1160px;
	margin: 20px auto;
}
#header-tcw {
	/* height: 100px; */
	padding: 0 15px;
}
#content-tcw {
	width: 360px;
	float: left;
	padding: 5px 15px;
}
#middle-tcw {
	width: 330px; /* change according to need */
	float: left;
	padding: 5px 15px;
	margin: 0px 5px 5px 5px;
}
#sidebar-tcw {
	width: 360px;
	padding: 5px 15px;
	float: left;
}
#footer-tcw {
	clear: both;
	padding: 0 15px;
}
@media screen and (max-width: 980px) {
	#pagewrap-tcw {
		width: 94%;
	}
	#content-tcw {
		width: 41%;
		padding: 1% 4%;
	}
	#middle-tcw {
		width: 41%;
		padding: 1% 4%;
		margin: 0px 0px 5px 5px;
		float: right;
	}	
	#sidebar-tcw {
		clear: both;
		padding: 1% 4%;
		width: auto;
		float: none;
	}
	#footer-tcw {
		padding: 1% 4%;
	}
}
@media screen and (max-width: 600px) {
	#content-tcw {
		width: auto;
		float: none;
	}
	#middle-tcw {
		width: auto;
		float: none;
		margin-left: 0px;
	}
	
	#sidebar-tcw {
		width: auto;
		float: none;
	}

}
@media screen and (max-width: 480px) {
	header-tcw {
		height: auto;
	}
	h1 {
		font-size: 2em;
	}
	#sidebar-tcw {
		display: none;
	}

}
#content-tcw {
	background: #f8f8f8;
}
#sidebar-tcw {
	background: #f0efef;
}
#header-tcw, #content-tcw, #middle-tcw, #sidebar-tcw {
	margin-bottom: 5px;
}
#pagewrap-tcw, #header-tcw, #content-tcw, #middle-tcw, #sidebar-tcw, #footer-tcw {
	border: solid 1px #ccc;
}

              
            
!

JS

              
                
              
            
!
999px

Console