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 lang="de">
	<h1>Allgemeine Erklärung der Menschenrechte</h1>
	<figure>
		<figcaption lang="en">Fig. 1: 3 flex items, all filled</figcaption>
		<div>
			<section id="article1">
				<h2>Artikel 1</h2>
				<p>Alle Menschen sind  frei und gleich an Würde und Rechten geboren. Sie sind mit Vernunft und  Gewissen begabt und sollen einander im Geiste der Brüderlichkeit begegnen.</p>
			</section>
			<section id="article2">
				<h2>Artikel 2</h2>
				<p>Jeder hat Anspruch  auf alle in dieser Erklärung verkündeten Rechte und Freiheiten, ohne  irgendeinen Unterschied, etwa nach Rasse, Hautfarbe, Geschlecht, Sprache,  Religion, politischer oder sonstiger Anschauung, nationaler oder sozialer  Herkunft, Vermögen, Geburt oder sonstigem Stand.&nbsp;[…]</p>
			</section>
			<section id="article3">
				<h2>Artikel 3</h2>
				<p>Jeder hat das  Recht auf Leben, Freiheit und Sicherheit der Person.</p>
			</section>
		</div>
	</figure>
	<figure>
		<figcaption lang="en">Fig. 2: 3 flex items; last item empty</figcaption>
		<div>
			<section id="article4">
				<h2>Artikel 4</h2>
				<p>Niemand darf in  Sklaverei oder Leibeigenschaft gehalten werden; Sklaverei und Sklavenhandel in  allen ihren Formen sind verboten.</p>
			</section>
			<section id="article5">
				<h2>Artikel 5</h2>
				<p>Niemand darf der Folter oder grausamer, unmenschlicher oder erniedrigender Behandlung oder Strafe unterworfen werden.</p>
			</section>
			<section id="empty"></section>
		</div>
	</figure>
	<figure>
		<figcaption lang="en">Fig. 3: 3 flex items; last item contains whitespace</figcaption>
		<div>
			<section id="article6">
				<h2>Artikel 6</h2>
				<p>Jeder hat das Recht, überall als rechtsfähig anerkannt zu werden.</p>
			</section>
			<section id="article7">
				<h2>Artikel 7</h2>
				<p>Alle Menschen sind vor dem Gesetz gleich und haben ohne Unterschied Anspruch auf gleichen Schutz durch das Gesetz. Alle haben Anspruch auf gleichen Schutz gegen jede Diskriminierung, die gegen diese Erklärung verstößt, und gegen jede Aufhetzung zu einer derartigen Diskriminierung.</p>
			</section>
			<section id="whitespace"> </section>
		</div>
	</figure>
</main>

              
            
!

CSS

              
                *, ::before, ::after {
	box-sizing: border-box;
}

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

h1 {
	font-size: 1.5em;
}

figure {
	margin: 0;
}

figure:not(:last-of-type) {
	margin-bottom: 2em;
	padding-bottom: 2em;
	border-bottom: thin solid silver;
}

figcaption {
	margin-bottom: 1.4em;
	font: italic 1em Cambria, Georgia, serif;
}

figure > div {
	display: flex;
	gap: 2em;
}

section {
	flex: 1;
}

section:empty {
	display: none;
}

h2, p {
	font-size: 1em;
	margin: 0;
}

              
            
!

JS

              
                
              
            
!
999px

Console