Pen Settings



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


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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


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.


                <figure class="pie-chart">
		リゾート地 38<span style="color:#26bad9"></span><br>
		アフリカ 5<span style="color:#864709"></span><br>
		北米 13<span style="color:#f02227"></span><br>
		中南米 10<span style="color:#f4e739"></span><br>
		アジア 21<span style="color:#58c218"></span><br>
		ヨーロッパ 28<span style="color:#4157f5"></span>


                .pie-chart {
	background: radial-gradient(circle closest-side, transparent 68%, white 0),
			from 64deg,
			#26bad9 0,
			#26bad9 33%,
			#864709 0,
			#864709 37.3%,
			#f02227 0,
			#f02227 48.6%,
			#f4e739 0,
			#f4e739 57.3%,
			#58c218 0,
			#58c218 75.6%,
			#4157f5 0,
			#4157f5 99.9%
	position: relative;
	width: 500px;
	min-height: 350px;
	margin: 0;
	outline: 1px solid #ccc;
.pie-chart h2 {
	position: absolute;
	margin: 1rem;
.pie-chart cite {
	position: absolute;
	bottom: 0;
	font-size: 80%;
	padding: 1rem;
	color: gray;
.pie-chart figcaption {
	position: absolute;
	bottom: 1em;
	right: 1em;
	font-size: smaller;
	text-align: right;
.pie-chart span:after {
	display: inline-block;
	content: "";
	width: 0.8em;
	height: 0.8em;
	margin-left: 0.4em;
	height: 0.8em;
	border-radius: 0.2em;
	background: currentColor;