cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation


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.

<h4 class="h4-custom">h4</h4>

              $reduce : 0.2; //フォントサイズを0.2ずつ源算するための値
$fontSize : 3 + $reduce; //フォントサイズの初期値

@for $value from 1 through 6 {

	h#{$value}{ //#{}を使用して見出しセレクタを作成

		$fontSize: $fontSize - $reduce; //0.2ずつ源算
		font-size: $fontSize + rem;

		@if $value == 2 {
			color: red;

		@if $value == 3 {
			color: blue;

		@if $value == 4 {
			&.h4-custom {
				border-bottom: 1px solid #CCCCCC;


Loading ..................