Pen Settings

HTML

CSS

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

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

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.

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

              
                <section class="wrapper">

	<div class="side">
		
		<h1>Three Columns Flexbox</h1>
		
		<img src="http://placekitten.com/200/300" alt="" />

	</div>
	
	<main>
		
<p>Bacon ipsum dolor amet pork cow short ribs, venison corned beef ball tip pastrami t-bone. Tail ground round biltong chicken, beef ribs tongue prosciutto andouille rump. Pork sausage turkey turducken flank kevin. Boudin jowl ribeye turkey, pork belly strip steak prosciutto chicken bresaola. Ground round short loin cupim jowl tongue tail capicola chicken strip steak beef kielbasa biltong. Cupim frankfurter tongue, chuck pork belly tenderloin picanha.</p>
		
<p>Bacon ipsum dolor amet pork cow short ribs, venison corned beef ball tip pastrami t-bone. Tail ground round biltong chicken, beef ribs tongue prosciutto andouille rump. Pork sausage turkey turducken flank kevin. Boudin jowl ribeye turkey, pork belly strip steak prosciutto chicken bresaola. Ground round short loin cupim jowl tongue tail capicola chicken strip steak beef kielbasa biltong. Cupim frankfurter tongue, chuck pork belly tenderloin picanha.</p>
		<p>Bacon ipsum dolor amet pork cow short ribs, venison corned beef ball tip pastrami t-bone. Tail ground round biltong chicken, beef ribs tongue prosciutto andouille rump. Pork sausage turkey turducken flank kevin. Boudin jowl ribeye turkey, pork belly strip steak prosciutto chicken bresaola. Ground round short loin cupim jowl tongue tail capicola chicken strip steak beef kielbasa biltong. Cupim frankfurter tongue, chuck pork belly tenderloin picanha.</p>

<p>Bacon ipsum dolor amet pork cow short ribs, venison corned beef ball tip pastrami t-bone. Tail ground round biltong chicken, beef ribs tongue prosciutto andouille rump. Pork sausage turkey turducken flank kevin. Boudin jowl ribeye turkey, pork belly strip steak prosciutto chicken bresaola. Ground round short loin cupim jowl tongue tail capicola chicken strip steak beef kielbasa biltong. Cupim frankfurter tongue, chuck pork belly tenderloin picanha.</p>


	</main>
	
	<div class="alt-side">
		<h2>I'm on the other side</h2>
	</div>
	
</section>

              
            
!

CSS

              
                /* variables */
:root {
	--bgcolor: #555;
	--realBlack: #444;
}

body {
	background-color: var(--bgcolor);
	color: var(--realBlack);
	color: white;
  font-family: 'Source Sans Pro', sans-serif;
	padding: 1rem;
}

h1,h2,h3,h4,h5,h6 {
	letter-spacing: -1px;
}

h1 {
	text-decoration: underline;
}

p {
	margin-bottom: 0.5rem;
}

img {

	border: 1px solid #ddd;
	padding: 0.5rem;
	margin: 1rem 0;
}

.wrapper {
	display: flex;
	min-height: 100vh;
}

.side, .alt-side {
	width: 10rem;
}

main {
	flex: 1 0 0;
	margin: 0 1rem;
}
              
            
!

JS

              
                
              
            
!
999px

Console