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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <h1>Photography Portfolio</h1>
<div class="navigation">
	<button>Show All</button>
	<button>Objects</button>
	<button>Landscapes</button>
	<button>Portraits</button>
	<button>Animals</button>
</div>
<div id="container">
	<div class="mix">
		<img src="http://picsum.photos/200/200?image=0" alt="laptop">
		<h2>Laptop</h2>
	</div>
	<div class="mix">
		<img src="http://picsum.photos/200/200?image=1083" alt="people on a boat">
		<h2>People on a boat</h2>
	</div>
	<div class="mix">
		<img src="http://picsum.photos/200/200?image=1080" alt="berries">
		<h2>Strawerries</h2>
	</div>
	<div class="mix">
		<img src="http://picsum.photos/200/200?image=1067" alt="city landscape">
		<h2>City Landscape</h2>
	</div>
	<div class="mix">
		<img src="http://picsum.photos/200/200?image=1062" alt="pug portrait">
		<h2>Pug Portrait 1</h2>
	</div>
	<div class="mix">
		<img src="http://picsum.photos/200/200?image=1061" alt="beach landscape">
		<h2>Beach Landscape</h2>
	</div>
	<div class="mix">
		<img src="http://picsum.photos/200/200?image=1060" alt="Coffee">
		<h2>Coffee Pot</h2>
	</div>
	<div class="mix">
		<img src="http://picsum.photos/200/200?image=1066" alt="baby">
		<h2>Baby Portrait</h2>
	</div>
	<div class="mix">
		<img src="http://picsum.photos/200/200?image=1027" alt="woman's face">
		<h2>Portrait</h2>
	</div>
	<div class="mix">
		<img src="http://picsum.photos/200/200?image=1025" alt="Dog in a blanket">
		<h2>Dog in Blanket II</h2>
	</div>
	<div class="mix">
		<img src="http://picsum.photos/200/200?image=987" alt="Sunset">
		<h2>Sunset</h2>
	</div>
	<div class="mix">
		<img src="http://picsum.photos/200/200?image=904" alt="Skatepark">
		<h2>Skatepark</h2>
	</div>
</div>
              
            
!

CSS

              
                /* These styles are just to make the pen look nice, they dont have an affect on the ability to "Mix It Up"! */
*, *:before, *:after{
	box-sizing:border-box;
}
body{
	font-family: sans-serif;
	margin:0;
	width:90%;
	max-width:1000px;
	min-width:320px;
	margin:auto;
}
h1{
	text-align:center;
}
.navigation{
	margin:1em;
	text-align:center;
}
.mix h2{
	margin:0 0 2em;
	font-size:.8em;
}
              
            
!

JS

              
                
              
            
!
999px

Console