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

              
                <main lang="en">
	<section id="article1">
		<h2>Article 1</h2>
		<p>All human beings are born free and equal in dignity and rights. They are   endowed with reason and conscience and should act towards one another in a   spirit of brotherhood.</p>
	</section>
	<section id="article2">
		<h2>Article 2</h2>
		<p>Everyone is entitled to all the rights and freedoms set forth in this   Declaration, without distinction of any kind, such as race, colour, sex,   language, religion, political or other opinion, national or social origin,   property, birth or other status. Furthermore, no distinction shall be made on   the basis of the political, jurisdictional or international status of the   country or territory to which a person belongs, whether it be independent,   trust, non-self-governing or under any other limitation of sovereignty.</p>
	</section>
	<section id="article3">
		<h2>Article 3</h2>
		<p>Everyone has the right to life, liberty and security of person.</p>
	</section>
	<section id="article4">
		<h2>Article 4</h2>
		<p>No one shall be held in slavery or servitude; slavery and the slave trade   shall be prohibited in all their forms.</p>
	</section>
	<section id="article5">
		<h2>Article 5</h2>
		<p>No one shall be subjected to torture or to cruel, inhuman or degrading   treatment or punishment.</p>
	</section>
	<section id="article6">
		<h2>Article 6</h2>
		<p>Everyone has the right to recognition everywhere as a person before the law.</p>
	</section>
</main>
<footer>
	taken from: Universal Declaration of Human Rights
</footer>

              
            
!

CSS

              
                html
{
	font: 1em/1.4 Georgia, serif;
}

*
{
	margin: 0;
}

main, footer
{
	display: block;
	margin: 2rem auto;
	max-width: 50rem;
}

main
{
	-moz-columns: 3;
	-moz-column-gap: 3em;
	-moz-column-rule: 1px solid hsl(0, 0%, 80%);
	columns: 3;
	column-gap: 3em;
	column-rule: 1px solid hsl(0, 0%, 80%);
}

section
{
	/*page-break-inside: avoid;/**/
}

section:not(:last-child)
{
	margin-bottom: 1.4rem;
}

h2
{
	margin: 0;
	font: 1.2rem/1.166667 Franklin Gothic Book, sans-serif;
	font-weight: bold;
	color: hsl(220, 50%, 50%);
	transform: translateY(-0.1rem);
	break-after: avoid;
}

footer
{
	margin: 2.8rem auto 0;
	border-top: 1px solid hsl(0, 0%, 60%);
	padding: 0.5em 0;
	font: 0.9rem/1 Franklin Gothic Book, sans-serif;
}


              
            
!

JS

              
                
              
            
!
999px

Console