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

              
                
<header class='site-header'>
	<inner-column>
		<a class='logo' href='/home-page'>
			<svg viewBox='0 0 10 10' width='20' height='20' role='img'>
				<circle r='5' cx='5' cy='5'></circle>
			</svg>
		</a>

		<nav class='site-menu'>
			<ul>
				<li>
					<a href='/link-one'><span>Link number one</span></a>
				</li>

				<li>
					<a href='/link-two'><span>Link number two</span></a>
				</li>

				<li>
					<a href='/link-three'><span>Link number three</span></a>
				</li>
			</ul>
		</nav>
	</inner-column>
</header>



<div class='page-content'>
	<inner-column>

		<aside>
			<h2>Aside bar</h2>
			
			<nav class='other-menu'>
				<ul>
					<li>
						<a href='/link-one'><span>Link number one</span></a>
					</li>

					<li>
						<a href='/link-two'><span>Link number two</span></a>
					</li>

					<li>
						<a href='/link-three'><span>Link number three</span></a>
					</li>
				</ul>
			</nav>
			
			<!-- <footer></footer> what would be here? -->
		</aside>



		<main aria-label='Main page content'> 
			<h1>The main thing this page is about</h1>

			<ol class='article-list'>
				<li>
					<article>
						<h1>This is an article</h1>

						<p>Intro paragraph.</p>

						<p>Some other text or whatevers.</p>

						<footer>Should this be a footer? How would it help people?</footer>
					</article>
				</li>

				<li>
					<article>
						<h3>Should this be an h1 or h3?</h3>

						<p>Intro paragraph.</p>

						<p>Some other text or whatevers.</p>

						<action-zone>This could be a nav or a custom element for fun.</action-zone>
					</article>
				</li>
			</ol>
		</main>

	</inner-column>
</div>



<footer class='site-footer'>
	<inner-column>

		<h2>Footer</h2>

		<p>Probably some navigation down here - </p>

		<nav class='other-other-menu'>
			<ul>
				<li>
					<a href='/link-one'><span>Link number one</span></a>
				</li>

				<li>
					<a href='/link-two'><span>Link number two</span></a>
				</li>

				<li>
					<a href='/link-three'><span>Link number three</span></a>
				</li>
			</ul>
		</nav>

	</inner-column>
</footer>

              
            
!

CSS

              
                * {
	box-sizing: border-box;
}

a, svg {
	display: block;
}

body * {
	border: 1px solid blue;
	padding: 3px;
}

inner-column {
	display: block;
	max-width: 1100px;
	margin-right: auto;
	margin-left: auto;
}


body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.page-content {
	flex-grow: 1;
}



.page-content inner-column {
	display: grid;
	gap: 30px;
}

@media (min-width: 800px) {
	.page-content inner-column {
		grid-template-columns: 300px 1fr;
	}
}
              
            
!

JS

              
                
              
            
!
999px

Console