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

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.

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

              
                #wrapepr
  table
    thead
      tr 
        th 
        th 身長
        th 胸囲
        th ウエスト
    tbody
      tr
        th S
        td(aria-label="身長") 155~165cm
        td(aria-label="胸囲") 80~88cm
        td(aria-label="ウエスト") 68~76cm
      tr
        th M
        td(aria-label="身長") 165~175cm
        td(aria-label="胸囲") 88~96cm
        td(aria-label="ウエスト") 76~84cm
      tr
        th L
        td(aria-label="身長") 175~185cm
        td(aria-label="胸囲") 96~104cm
        td(aria-label="ウエスト") 84~94cm
      tr
        th LL
        td(aria-label="身長") 175~185cm
        td(aria-label="胸囲") 104~108cm
        td(aria-label="ウエスト") 94~104cm


              
            
!

CSS

              
                @mixin pc{
  @media screen and (min-width:501px){
    @content;
  }
}
@mixin smt{
  @media screen and (max-width:500px){
    @content;
  }
}
*{
  box-sizing: border-box;
}
#wrapepr{
  max-width: 600px;
  padding: 0 10px;
  margin: 20px auto;
  font-size: 14px;
}
table{
  width: 100%;
  th{
    text-align: left;
  }
  @include pc{
    table-layout: fixed;
    th,td{
      padding: 10px;
      border:1px solid #111;
    }
    th{
      background-color: #eee;
    }
  }
  @include smt{
    display: block;
    thead{
      display: none;
    }
    tbody,tr,th,td{
      display: block;
      width: 100%;
    }
    tr{
      border-bottom:1px solid #111;
      margin-bottom: 5px;
    }
    th{
      padding: 10px 10px 5px;
      font-weight: bold;
      font-size: 16px;
    }
    td{
      position: relative;
      padding: 10px 10px 10px calc(50% + 10px);
      border-top:1px solid #111;
      border-left:1px solid #111;
      border-right:1px solid #111;
      background-color: #fff;
      &:before{
        content:attr(aria-label);
        position: absolute;
        top: 0;
        left: 0;
        box-sizing: border-box;
        width: 50%;
        height: 100%;
        padding: 10px;
        border-right:1px solid #111;
         background-color: #eee;
      }
    }
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console