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

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

              
                
<div class="container">
	<p>ドット1(円1px/背景12px×12px)</p>
	<div class="dot dot1"></div>
	<p>ドット2(円30%/背景30px×30px)</p>
	<div class="dot dot2"></div>
	<p>ドット3(斜め/円1px/背景16px×16px)</p>
	<div class="dot dot3"></div>
</div>
              
            
!

CSS

              
                .container {
	max-width: min(95%, 800px);
	margin-left: auto;
	margin-right: auto;
}
.dot {
	height: 200px;
}
.dot1 {
	background-color: #FBFDFD;
	background-image: radial-gradient(circle at center, #3A3F58 1px, transparent 1px, transparent 12px);
	background-size: 12px 12px;
}
.dot2 {
	background-color: #FBFDFD;
	background-image: radial-gradient(#3A3F58 30%, transparent 30%);
	background-size: 30px 30px;
}
.dot3 {
	background-color: #FBFDFD;
	background-image: radial-gradient(#3A3F58 1px, transparent 1px),radial-gradient(#3A3F58 1px, transparent 1px);
	background-size: 16px 16px;
	background-position: 0 0, 8px 8px;
}
              
            
!

JS

              
                
              
            
!
999px

Console