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 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

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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

            
              <a class="btn-grad btn-grad1" href="URL">ボタン1のテキスト</a>
<a class="btn-grad btn-grad2" href="URL">ボタン2のテキスト</a>
<a class="btn-grad btn-grad3" href="URL">ボタン3のテキスト</a>
<a class="btn-grad btn-grad4" href="URL">ボタン4のテキスト</a>
<a class="btn-grad btn-grad5" href="URL">ボタン4のテキスト</a>


            
          
!

CSS

            
              /*ボタン共通の形。面倒なときはボタンの色の中に一緒に突っ込む*/
.btn-grad {
    margin: 10px;/*ボタンの外側余白*/
    padding: 30px;/*ボタンの内側余白*/
    width:50%;/*ボタンの幅*/
    text-align: center;/*文字の位置*/
    transition: 0.5s;
    background-size: 200% auto;
    color: white;/*文字の色*/
    box-shadow: 0 0 20px #eee;
    border-radius: 10px;/*ボタンの角の形*/
    display: block;
}
/*ボタン1の色*/
.btn-grad1 {background-image: linear-gradient(to right, #1A2980 0%, #26D0CE 51%, #1A2980 100%)}
.btn-grad1:hover { background-position: right center; }

/*ボタン2の色*/
.btn-grad2 {background-image: linear-gradient(to right, #FF512F 0%, #DD2476 51%, #FF512F 100%)}
.btn-grad2:hover { background-position: right center; }

/*ボタン3の色*/
.btn-grad3 {background-image: linear-gradient(to right, #2BC0E4 0%, #EAECC6 51%, #2BC0E4 100%)}
.btn-grad3:hover { background-position: right center; }


/*ボタン4の色*/
.btn-grad4{background-image: linear-gradient(to right, #00d2ff 0%, #3a7bd5 51%, #00d2ff 100%)}
.btn-grad4:hover { background-position: right center; }

/*ボタン5の色*/
.btn-grad5 {background-image: linear-gradient(to right, #8e9eab 0%, #eef2f3 51%, #8e9eab 100%)}
.btn-grad5:hover { background-position: right center; }

            
          
!

JS

            
              
            
          
!
999px

Console