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

              
                <div class="btn-wrapper">
  <a href="" class="contact-btn-style btn">
    <i class="fa fa-envelope"></i>
    お問い合わせはこちら
    <i class="fas fa-chevron-right"></i>
  </a>
</div>
              
            
!

CSS

              
                
div.btn-wrapper {
  /* 中央揃え */
  text-align: center;
  margin-top: 2em;
}

a.btn {
  /* 下線なし */
  text-decoration: none;
  /* 横に並べる */
  position: inline-block;
  /* 折り返しなし */
  white-space: nowrap;
  
  /* Font Awesameを配置する場合に設定 */
  position: relative;
}

/* ボタンの装飾 */
a.contact-btn-style {
  /* 文字の色 */
  color: #fff;
  /* 文字の太さ */
  font-weight: 700;
  /* 背景色 */
  background-color: #ff4500;
  /* パッディング */
  padding: 1rem 3rem;
  /* 枠線 */
  border: 3px solid #ff4500;
  /* 角丸 */
  border-radius: 100vh;
}

/* Font Awesame配置 */
.fa-envelope {
  /* 親要素でrelativeを設定しておく */
  position: absolute;
  /* 中央に配置 */
  top: calc(50% - 0.5em);
  /* 左からの位置 */
  left: 1em;
}

/* Font Awesame配置 */
.fa-chevron-right {
  /* 親要素でrelativeを設定しておく */
  position: absolute;
  /* 中央に配置 */
  top: calc(50% - 0.5em);
  /* 右からの位置 */
  right: 1em;
}

/* マウスポインタ―が要素の上に来た場合 */
.contact-btn-style:hover {
  /* 文字の色 */
  color: #ff4500;
  /* 背景色 */
  background: #fff;
}

              
            
!

JS

              
                
              
            
!
999px

Console