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

              
                <main class="container">
	<ul id="gallery" class="row list-unstyled">
		<li class="col-12 col-sm-6 col-md-4 col-lg-3 col-xl-2 text-right pb-5">
			<img class="img-fluid" src="http://talks.local/grid-to-the-future/marty-doc-1985.jpg" alt=""/>
			<button class="align-self-end mt-auto" aria-label="Back to the future"></button>
		</li>
		<li class="col-12 col-sm-6 col-md-4 col-lg-3 col-xl-2 text-right pb-5">
			<img class="img-fluid" src="http://talks.local/grid-to-the-future/einstein.jpg" alt=""/>
			<p class="text-left">Einstein (nach dem das Einsteinufer benannt ist)</p>
			<button class="align-self-end mt-auto" aria-label="Back to the future"></button>
		</li>
		<li class="col-12 col-sm-6 col-md-4 col-lg-3 col-xl-2 text-right pb-5">
			<img class="img-fluid" src="http://talks.local/grid-to-the-future/flux-ui.jpg" alt=""/>
			<p class="text-left">User interce design anno 1985</p>
			<button class="align-self-end mt-auto" aria-label="Back to the future"></button>
		</li>
		<li class="col-12 col-sm-6 col-md-4 col-lg-3 col-xl-2 text-right pb-5">
			<img class="img-fluid" src="http://talks.local/grid-to-the-future/marty-doc-1955.jpg" alt=""/>
			<p class="text-left">„Sag nichts!“</p>
			<button class="align-self-end mt-auto" aria-label="Back to the future"></button>
		</li>
		<li class="col-12 col-sm-6 col-md-4 col-lg-3 col-xl-2 text-right pb-5">
			<img class="img-fluid" src="http://talks.local/grid-to-the-future/marty-loraine.jpg" alt=""/>
			<p class="text-left">Calvin Klein.</p>
			<button class="align-self-end mt-auto" aria-label="Back to the future"></button>
		</li>
		<li class="col-12 col-sm-6 col-md-4 col-lg-3 col-xl-2 text-right pb-5">
			<img class="img-fluid" src="http://talks.local/grid-to-the-future/marty-biff-george-bar.jpg" alt=""/>
			<p class="text-left">“Anybody home, McFly?”</p>
			<button class="align-self-end mt-auto" aria-label="Back to the future"></button>
		</li>
		<li class="col-12 col-sm-6 col-md-4 col-lg-3 col-xl-2 text-right pb-5">
			<img class="img-fluid" src="http://talks.local/grid-to-the-future/darth-vader.jpg" alt=""/>
			<p lang="de">Darth Vader vom Planeten Vulkan. 🖖 🤣</p>
			<button class="align-self-end mt-auto" aria-label="Back to the future"></button>
		</li>
		<li class="col-12 col-sm-6 col-md-4 col-lg-3 col-xl-2 text-right pb-5">
			<img class="img-fluid" src="http://talks.local/grid-to-the-future/biff-manure.jpg" alt=""/>
			<p lang="de">„Ich hasse Mist!“</p>
			<button class="align-self-end mt-auto" aria-label="Back to the future"></button>
		</li>
		<li class="col-12 col-sm-6 col-md-4 col-lg-3 col-xl-2 text-right pb-5">
			<img class="img-fluid" src="http://talks.local/grid-to-the-future/goldie-wilson.jpg" alt=""/>
			<p class="text-left">„Bürgermeister‽ Dann mache ich die Stadt sauber.“</p>
			<p class="text-left">„Du kannst gleich mit dem Fußboden hier anfangen.“</p>
			<button class="align-self-end mt-auto" aria-label="Back to the future"></button>
		</li>
		<li class="col-12 col-sm-6 col-md-4 col-lg-3 col-xl-2 text-right pb-5">
			<img class="img-fluid" src="http://talks.local/grid-to-the-future/marty-band.jpg" alt=""/>
			<p class="text-left">“Go, Johnny, go, go!”</p>
			<button class="align-self-end mt-auto" aria-label="Back to the future"></button>
		</li>
		<li class="col-12 col-sm-6 col-md-4 col-lg-3 col-xl-2 text-right pb-5">
			<img class="img-fluid" src="http://talks.local/grid-to-the-future/doc-clock.jpg" alt=""/>
			<p class="text-left">It’s doc o’clock.</p>
			<button class="align-self-end mt-auto" aria-label="Back to the future"></button>
		</li>
		<li class="col-12 col-sm-6 col-md-4 col-lg-3 col-xl-2 text-right pb-5">
			<img class="img-fluid" src="http://talks.local/grid-to-the-future/strickland.jpg" alt=""/>
			<p class="text-left">“You’re a slacker, McFly. And your old man was a slacker, too.“</p>
			<button class="align-self-end mt-auto" aria-label="Back to the future"></button>
		</li>
		<li class="col-12 col-sm-6 col-md-4 col-lg-3 col-xl-2 text-right pb-5">
			<img class="img-fluid" src="http://talks.local/grid-to-the-future/hoverboard-pond.jpg" alt=""/>
			<p class="text-left">Wasserlandung.</p>
			<button class="align-self-end mt-auto" aria-label="Back to the future"></button>
		</li>
		<li class="col-12 col-sm-6 col-md-4 col-lg-3 col-xl-2 text-right pb-5">
			<img class="img-fluid" src="http://talks.local/grid-to-the-future/marty-doc-clock.jpg" alt=""/>
			<p class="text-left">Damals, als es noch keine Selfies gab.</p>
			<button class="align-self-end mt-auto" aria-label="Back to the future"></button>
		</li>
		<li class="col-12 col-sm-6 col-md-4 col-lg-3 col-xl-2 text-right pb-5">
			<img class="img-fluid" src="http://talks.local/grid-to-the-future/klara-doc.jpg" alt=""/>
			<p class="text-left">„Dann sehe ich klara.“</p>
			<button class="align-self-end mt-auto" aria-label="Back to the future"></button>
		</li>
		<li class="col-12 col-sm-6 col-md-4 col-lg-3 col-xl-2 text-right pb-5">
			<img class="img-fluid" src="http://talks.local/grid-to-the-future/klara-locomotive.jpg" alt=""/>
			<p class="text-left">Point of no return.</p>
			<button class="align-self-end mt-auto" aria-label="Back to the future"></button>
		</li>
	</ul>
</main>
              
            
!

CSS

              
                body
{
	margin: 0;
	padding: 2em 1em;
}

#gallery > li > *
{
	margin: 0 0 0.6em;
}

#gallery p
{
	font-family: Futura, sans-serif;
	line-height: 1.2;
}

#gallery button
{
	margin-bottom: 0;
	font: 0.75em/1 'Back to the future 2002';
	border: none;
	border-radius: 0.5em;
	padding: 0.75em 1.25em 0.5em;
	background: navy;
	color: gold;
}

#gallery button::before
{
	content: 'BACK<';
	display: block;
	font-size: 1.35em;
	text-indent: -.25em;
	text-transform: uppercase;
}

#gallery button::after
{
	content: '&future';
	display: block;
	text-indent: .25em;
	text-transform: lowercase;
}

              
            
!

JS

              
                
              
            
!
999px

Console