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

              
                <!-- Begin Cookie Consent plugin by Silktide - http://silktide.com/cookieconsent -->
<script type="text/javascript">
	window.cookieconsent_options = {
		"message":"Mit der Nutzung dieser Website erklären Sie sich damit einverstanden, dass wir Cookies verwenden.",
		"dismiss":"Verstanden",
		"learnMore":"Mehr Informationen",
		"link":"http://www.example.de/datenschutz",
		"theme":"dark-top"
	};
</script>

<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/1.0.9/cookieconsent.min.js"></script>
<!-- End Cookie Consent plugin -->
              
            
!

CSS

              
                /*
CSS muss nach dem HTML-Code und dem JS-Aufruf eingefügt werden. Nur so wird der nachgeladene CSS-Code überschrieben.

Color: Schriftfarbe
Background: Hintergrundfarbe
Hover/Focus: Veränderung bei Mauszeiger über dem Element
*/

/* Styles für "Mehr Informationen"-Link */
.cc_container a,
.cc_container a:visited {
	color: #00afea;
}
.cc_container a:hover,
.cc_container a:focus {
	color: #51d3ff;
}

/* Styles für "Verstanden"-Button */
.cc_container .cc_btn,
.cc_container .cc_btn:visited {
	color: #fff;
	background-color: #00afea;
}
.cc_container .cc_btn:hover,
.cc_container .cc_btn:focus {
	color: #fff;
	background: #51d3ff;
}
              
            
!

JS

              
                
              
            
!
999px

Console