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

              
                <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP&display=swap" rel="stylesheet">
<div class="content">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.</p>
<h1>色々な見出しパターンを紹介</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.</p>
</div>
              
            
!

CSS

              
                body{
	background: #F4EDE9;
	font-family: 'Noto Sans JP', sans-serif;
}
.content{
	margin: 20px auto;
	padding: 20px;
	width: 80vw;
	max-width: 600px;
	box-shadow: 0 2px 8px 0 rgba(0,0,0,0.2);
	background: #fff;
	line-height: 1.45
}
h1{
	margin: 20px 0;
	color: #2f2f2f;
	font-size: 28px;
}
p{
	margin: 0;
}

h1{
	position: relative;
	padding: 8px 12px 10px 32px;
	border-radius: 1em 0 0 1em;
	background: #ddd;
}
h1::before{
	content: "";
	position: absolute;
	top: 50%;
	left: 12px;
	border-radius: 50%;
	width: 12px;
	height: 12px;
	background: #fff;
	transform: translatey(-50%);
}
              
            
!

JS

              
                
              
            
!
999px

Console