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

              
                <nav id="questions" aria-label="List of questions">
	<ul>
		<li><a href="#q1">Question 1</a></li>
		<li><a href="#q2">Question 2</a></li>
		<li><a href="#q3">Question 3</a></li>
		<li><a href="#q4">Question 4</a></li>
		<li><a href="#q5">Question 5</a></li>
	</ul>
</nav>

<h2 id="q1">Question 1</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Molestiae recusandae impedit aliquam ipsa quas illo quisquam excepturi maxime ipsum, sit veritatis reprehenderit quis amet at obcaecati cupiditate ut, molestias voluptate.</p>
<p><a href="#questions">Go back to the list of questions</a></p>
<h2 id="q2">Question 2</h2>
<p>Sunt quibusdam consequuntur veritatis! Dolorum, ea doloremque quas ad totam sunt voluptate sed qui vel tenetur accusantium labore omnis excepturi praesentium iusto mollitia nemo eaque voluptates unde? Nemo, facilis eius?</p>
<p><a href="#questions">Go back to the list of questions</a></p>
<h2 id="q3">Question 3</h2>
<p>Voluptatibus est expedita accusamus ratione facere praesentium! Architecto, totam consequatur? Eveniet labore delectus, ipsa, repellat voluptatum provident iure id hic, minus soluta corporis! Impedit quam sapiente iste quisquam facilis soluta.</p>
<p><a href="#questions">Go back to the list of questions</a></p>
<h2 id="q4">Question 4</h2>
<p>Impedit natus quis eum delectus veniam! Deleniti suscipit nostrum voluptas doloremque amet iusto facilis necessitatibus, voluptates quisquam error perspiciatis fugit harum soluta laborum asperiores quos doloribus quod omnis tempore alias!</p>
<p><a href="#questions">Go back to the list of questions</a></p>
<h2 id="q5">Question 5</h2>
<p>Omnis molestias quod repellat ratione laudantium, architecto beatae deserunt aliquam a debitis quia exercitationem veniam sunt possimus ab fuga consequuntur placeat at culpa eligendi? Aliquid odit quod fugit ab architecto.</p>
<p><a href="#questions">Go back to the list of questions</a></p>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console