css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

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.

            
              <div class="float_box">
  <ul>
    <li> <!-- [▼] アイテム -->
      <a href="#">
        <img src="http://creatorhyp.com/wp-content/uploads/2016/02/kuma.jpg" class="image">
        <p class="name">全米が泣いたグレート過ぎて愛らしい期間限定ベアーA</p>
        <p class="price">&yen;1,980</p>
      </a>
    </li> <!-- [▲] アイテム -->
    <li> <!-- [▼] アイテム -->
      <a href="#">
        <img src="http://creatorhyp.com/wp-content/uploads/2016/02/kuma.jpg" class="image">
        <p class="name">グレートなベアーB</p>
        <p class="price">&yen;1,980</p>
      </a>
    </li> <!-- [▲] アイテム -->
    <li> <!-- [▼] アイテム -->
      <a href="#">
        <img src="http://creatorhyp.com/wp-content/uploads/2016/02/kuma.jpg" class="image">
        <p class="name">グレートなベアーC</p>
        <p class="price">&yen;1,980</p>
      </a>
    </li> <!-- [▲] アイテム -->
    <li> <!-- [▼] アイテム -->
      <a href="#">
        <img src="http://creatorhyp.com/wp-content/uploads/2016/02/kuma.jpg" class="image">
        <p class="name">グレートなベアーD</p>
        <p class="price">&yen;1,980</p>
      </a>
    </li> <!-- [▲] アイテム -->
    <li> <!-- [▼] アイテム -->
      <a href="#">
        <img src="http://creatorhyp.com/wp-content/uploads/2016/02/kuma.jpg" class="image">
        <p class="name">グレートなベアーE</p>
        <p class="price">&yen;1,980</p>
      </a>
    </li> <!-- [▲] アイテム -->
    <li> <!-- [▼] アイテム -->
      <a href="#">
        <img src="http://creatorhyp.com/wp-content/uploads/2016/02/kuma.jpg" class="image">
        <p class="name">グレートなベアーF</p>
        <p class="price">&yen;1,980</p>
      </a>
    </li> <!-- [▲] アイテム -->
    <li> <!-- [▼] アイテム -->
      <a href="#">
        <img src="http://creatorhyp.com/wp-content/uploads/2016/02/kuma.jpg" class="image">
        <p class="name">グレートなベアーG</p>
        <p class="price">&yen;1,980</p>
      </a>
    </li> <!-- [▲] アイテム -->
  </ul>
</div>
            
          
!
            
              .float_box ul,
.float_box li,
.float_box p
{
  /* [余白をリセット] */
  margin: 0;
  padding: 0;
}
.float_box
{
  /* [はみ出ている部分を非表示] */
  overflow: hidden;
}
.float_box ul
{
  /* [縦幅を復帰。] */
  overflow: hidden;

  /* [右側に30px分の余白を作る] */
  margin-right: -30px;

  /* [下側に30px分の余白を削る] */
  margin-bottom: -30px;
}
.float_box li
{
  /* [黒点を非表示] */
  list-style-type: none;

  /* [要素を横並びにする] */
  float: left;
  width: 25%;

  /* [アイテムの下側に30px分の余白を設定] */
  margin-bottom: 30px;
}
@media all and (min-width: 992px)
{
  /* タブレットサイズ以上のデザイン */
  .float_box li
  {
    /* 横幅を3個分に設定 */
    width: 25%;
  }
  .float_box li:nth-of-type(4n+1)
  {
    /* [4+1個置きにclearを設定] */
    clear: both;
  }
}
@media all and (min-width: 768px) and (max-width: 991px)
{
  /* タブレットサイズ時のデザイン */
  .float_box li
  {
    /* 横幅を3個分に設定 */
    width: 33.333%;
  }
  .float_box li:nth-of-type(3n+1)
  {
    /* [3+1個置きにclearを設定] */
    clear: both;
  }
}
@media all and (max-width: 767px)
{
  /* スマホサイズ時のデザイン */
  .float_box li
  {
    /* 横幅を2個分に設定 */
    width: 50%;
  }
  .float_box li:nth-of-type(2n+1)
  {
    /* [2+1個置きにclearを設定] */
    clear: both;
  }
}
.float_box a
{
  /* [ブロック要素に変更] */
  display: block;

  /* [余白を指定] */
  margin-right: 30px;

  /* [リンク文字の初期値を黒にする] */
  color: #000;

  /* [リンクテキストのアンダーラインを非表示にする] */
  text-decoration: none;
}
.float_box .image
{
  /* [ボックス内を最大サイズにする] */
  max-width: 100%;

  /* [画像が真ん中に来るようにする] */
  /* [画像と文字の間に余白を入れる] */
  display: block;
  margin: 0 auto 5px;
}
.float_box .name
{
  /* [価格との間に余白を入れる] */
  margin-bottom: .75em;

  /* [商品名の文字を若干小さくする] */
  font-size: .875em;

  /* [商品名の文字をグレーにする] */
  color: #777;
}
.float_box .price
{
  /* [価格を太文字にする] */
  font-weight: bold;
}

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console