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 id="menu-list" class="l-wrap bg-black">
    <div class="l-inner">
        <ul class="l-content menu-column">
            <li class="column-item"><a href="#" class="btn-item one"><span class="btn-top">ここに補足説明テキストを入れる</span><span
                        class="btn-bottom">AAAの詳細はこちら</span></a></li>
            <li class="column-item"><a href="#" class="btn-item two"><span class="btn-top">ここに補足説明テキストを入れる</span><span
                        class="btn-bottom">BBBの詳細はこちら</span></a></li>
            <li class="column-item"><a href="#" class="btn-item three"><span class="btn-top">ここに補足説明テキストを入れる</span><span
                        class="btn-bottom">CCCの詳細はこちら</span></a></li>
            <li class="column-item"><a href="#" class="btn-item four"><span class="btn-top">ここに補足説明テキストを入れる</span><span
                        class="btn-bottom">DDDの詳細はこちら</span></a></li>
        </ul>
    </div>
</section>
              
            
!

CSS

              
                body {
  font-family: system-ui;
}

.l-wrap {
  padding: 48px 0;
}

.l-inner {
  padding: 0 48px;
}

.l-content {
  max-width; 1200px;
}

/*--------------------
menu-list 補足付き / 左にアイコン
--------------------*/

.bg-black {
  background-color: #2a2a2a;
}
.menu-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 304px), 1fr));
  gap: 16px;
}
a.btn-item {
  display: block;
  margin: 0 auto;
  text-decoration: none;
}
a.btn-item span {
  display: block;
  color: white;
  text-align: center;
  font-weight: bold;
}
a.btn-item.one .btn-top {
  background-color: #025905;
}
a.btn-item.one .btn-bottom {
  background-color: #148d19;
}
a.btn-item.one .btn-bottom::before {
/*  任意のアイコン画像パスに変更ください  */
  background-image: url(https://dl.dropbox.com/s/7abzyf1mz9szos4/dr066.svg?dl=0); 
}
a.btn-item.two .btn-top {
  background-color: #035A6D;
}
a.btn-item.two .btn-bottom {
  background-color: #0B9DBD;
}
a.btn-item.two .btn-bottom::before {
/*  任意のアイコン画像パスに変更ください  */
  background-image: url(https://dl.dropbox.com/s/kazxxc8vc0g0whw/go033.svg?dl=0);
}
a.btn-item.three .btn-top {
  background-color: #03276D;
}
a.btn-item.three .btn-bottom {
  background-color: #0E57C6;
}
a.btn-item.three .btn-bottom::before {
/*  任意のアイコン画像パスに変更ください  */
  background-image: url(https://dl.dropbox.com/s/ja4u65ptd3gk6ne/light01.svg?dl=0);
}
a.btn-item.four .btn-top {
  background-color: #310886;
}
a.btn-item.four .btn-bottom {
  background-color: #691BE9;
}
a.btn-item.four .btn-bottom::before {
/*  任意のアイコン画像パスに変更ください  */
  background-image: url(https://dl.dropbox.com/s/kuwazz4nmijfj8e/plant03.svg?dl=0);
}
a.btn-item .btn-top {
  padding: 8px;
  border-radius: 4px 4px 0 0;
  font-size: 14px;
}
a.btn-item .btn-bottom {
  position: relative;
  padding: 16px 4px;
  border-radius: 0 0 4px 4px;
  font-size: 18px;
}
a.btn-item .btn-bottom::before {
  position: absolute;
  content: "";
  top: 50%;
  left: 8px;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  width: 64px;
  height: 64px;
  background-repeat: no-repeat;
  background-size: contain;
}
a.btn-item .btn-bottom::after {
  position: absolute;
  content: "";
  top: 50%;
  right: 16px;
  -webkit-transform: translate(0, -50%);
          transform: translate(0, -50%);
  width: 20px;
  height: 20px;
/*  任意の矢印画像パスに変更ください  */
  background-image: url("https://dl.dropbox.com/s/k78lkrpo4c5vuvu/btn_circle_white.svg?dl=0");
  background-repeat: no-repeat;
  background-size: contain;
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}
a.btn-item:hover .btn-bottom::after {
  -webkit-transform: translate(4px, -50%);
          transform: translate(4px, -50%);
}
              
            
!

JS

              
                
              
            
!
999px

Console