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 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

              
                <svg style="display: none">
	<symbol id="arrow-right" viewBox="0 0 448 512">
		<path d="m190.5 66.9 22.2-22.2c9.4-9.4 24.6-9.4 33.9 0l194.4 194.3c9.4 9.4 9.4 24.6 0 33.9l-194.4 194.4c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3l120.5-114.8h-287.4c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4l-120.5-114.8c-9.8-9.3-10-24.8-.4-34.3z"/>
	</symbol>
</svg>

<ul class="menu">
	<li><svg><use xlink:href="#arrow-right"/></svg>Kurzer Titel</li>
	<li><svg><use xlink:href="#arrow-right"/></svg>Ein langer Titel, braucht zwei Zeilen</li>
	<li><svg><use xlink:href="#arrow-right"/></svg>Das ist ein ganz besonders langer Titel, braucht drei Zeilen</li>
		<ul>
			<li><svg><use xlink:href="#arrow-right"/></svg>kurzer Untertitel</li>
			<li><svg><use xlink:href="#arrow-right"/></svg>ein sehr langer Untertitel</li>
		</ul>
	</li>
</ul>
              
            
!

CSS

              
                .menu,
.menu ul
{
	list-style: none;
}

.menu
{
	color: black;
	max-width: 12em;
}

.menu li
{
	padding-left: 1em;
	text-indent: -1em;
}

.menu svg
{
	width: 0.75em;
	height: 0.75em;
	margin-right: 0.25em;
	fill: currentColor;
}

.menu ul
{
	color: gray;
}


              
            
!

JS

              
                
              
            
!
999px

Console