css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <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>
            
          
!
            
              #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;
}

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console