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

              
                <section>
  <a href="https://125naroom.com/web/2846" target="_blank" class="btn_ao_c"><span class="c__text"><span class="c__in"><span class="c__icon"><img src="https://125naroom.com/wp/wp-content/themes/design125naroom/img/kinoko_pan.png" alt=""></span><span class="a__one">シンプルな<br>ボタンデザイン集</span></span></span></a>
</section>
              
            
!

CSS

              
                /**************
a.btn_ao_c
**************/

a.btn_ao_c {
  display: flex;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 1.3rem 2rem;
  background: #ffffff;
  border: 2px solid #014897;
  text-decoration: none;
  transition: 0.3s;
}
a.btn_ao_c:hover {
  background: #fffbee;
}
a.btn_ao_c .c__icon {
  padding-right: 10px;
}
a.btn_ao_c .c__icon img {
  width: 36px;
  vertical-align: middle;
}
a.btn_ao_c .c__text {
  display: block;
  flex-grow: 1;
  color: #014897;
  font-weight: bold;
  text-align: center;
  position: relative;
  padding-right: 15px;
  font-size: 23px;
}
a.btn_ao_c .c__text::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  transform: rotate(45deg);
  border-top: 3px solid #014897;
  border-right: 3px solid #014897;
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  transition: 0.3s;
}
a.btn_ao_c .c__text .c__in {
  display: flex;
  align-items: center;
  justify-content: center;
}
a.btn_ao_c br {
  display: none;
}
@media (max-width: 736px) {
  a.btn_ao_c .c__icon img {
    width: 42px;
  }
  a.btn_ao_c .c__text {
    font-size: 14px;
    padding-right: 20px;
  }
  a.btn_ao_c .c__text::after {
    width: 10px;
    height: 10px;
  }
  a.btn_ao_c br {
    display: block;
  }
}

/*=============
base
=============*/

body {
  font-family: "メイリオ","Meiryo","小塚ゴシック Pr6N","Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3","MS Pゴシック","MS PGothic", sans-serif;
  word-break: break-all;
}
section {
  padding: 60px 10px;
}
              
            
!

JS

              
                
              
            
!
999px

Console