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

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

              
                <main lang="de">
	<figure>
		<img src="https://pbs.twimg.com/media/FKR3PUSWUAE1OpA?format=jpg&name=large" alt="Bösebrücke mit Spiegelbild"/>
		<small>Foto: Gunnar Bittersmann</small>
	</figure>
	<div>
		<h1>Doppelt böse Brücke</h1>
		<p>Die Bösebrücke ist eine Bogenbrücke in Berlin und verbindet über die Gleise der Fern- und S-Bahn die Ortsteile Prenzlauer Berg und Gesundbrunnen. Das im Verlauf der Bornholmer Straße liegende Bauwerk wird oft fälschlicherweise auch Bornholmer Brücke genannt. Die unter Denkmalschutz stehende erste genietete Stahlbrücke Berlins wurde 1916 als Hindenburgbrücke eröffnet und erhielt 1948 ihren heutigen Namen nach dem kommunistischen Widerstandskämpfer Wilhelm Böse.</p>
		<p>Weltweite Berühmtheit erlangte die Brücke am 9. November 1989, dem Tag des Mauerfalls, als der Grenzübergang Bornholmer Straße am östlichen Ende der Bösebrücke der erste Übergang in Ost-Berlin war, der für DDR-Bürger geöffnet wurde.</p>
	</div>
</main>

              
            
!

CSS

              
                main {
	display: grid;
	gap: 2em 4em;
}

@media (min-width: 30em) {
	main {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 50em) {
	main {
		grid-template-columns: 5fr 8fr;
	}
}


body {
	font: 1em/1.4 Raleway, sans-serif;
	font-variant-numeric: lining-nums;
}

figure { margin: 0 }
img { width: 100% }
h1 {
	margin: 0;
	font: 500 calc(1.375rem + 1.5vw)/1.2em Raleway, sans-serif;
}

              
            
!

JS

              
                
              
            
!
999px

Console