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

              
                <details>
	<summary>Accordion title</summary>
	<p>Mandalorians maul solo kessel mothma droid padmé thrawn moff. Antilles organa moff wookiee wookiee. Gonk antilles dantooine yoda sith. Qui-gonn dantooine mandalorians darth. Luuke lando wedge yavin naboo ben. Kit moff calrissian mara luke ackbar.</p>
</details>
<details>
	<summary>Accordion title 2</summary>
	<p>Lucas ipsum dolor sit amet antilles darth vader tatooine sebulba wedge secura mandalorians padmé c-3p0. Dagobah anakin amidala r2-d2 jawa moff twi'lek greedo darth. Skywalker skywalker wedge jade mon darth. R2-d2 yoda kashyyyk kit skywalker.</p>
</details>
              
            
!

CSS

              
                body
	display grid
	min-height 100vh
	place-items center
	align-content center
	font-family system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,BlinkMacSystemFont,Helvetica Neue,Arial
details
	width 400px
	background-color #171e13
	border none
	color #e7ddd2
	margin 0.1rem 0
	outline none
	> summary
		list-style none
		padding 1rem
		font-size 1.2rem
		font-weight 500
		letter-spacing 0.03em
		outline none
	> p
		background-color #b47c4b
		color black
		margin 0
		padding 1rem
		
              
            
!

JS

              
                
              
            
!
999px

Console