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

              
                <h1>むったんの好きな推し曲</h1>

<div class="scroll-box">
  <table>
    <thead>
      <th></th>
      <th>高橋直純</th>
      <th>入野自由</th>
      <th>KAmiYU</th>
      <th>Kinki Kids</th>
    </thead>
    <tbody>
      <tr>
        <th>1st</th>
        <td>はしゃいだ太陽</td>
        <td>流れ星</td>
        <td>心の扉</td>
        <td>愛のかたまり</td>
      </tr>
      <tr>
        <th>2nd</th>
        <td>Prism</td>
        <td>見果てぬ世界、繋がる想い</td>
        <td>マンジ・ガンザナイト</td>
        <td>薄荷キャンディー</td>
      </tr>
      <tr>
        <th>3rd</th>
        <td>ポジティブファイター</td>
        <td>I am I</td>
        <td>EXOTIC FEVER</td>
        <td>Kinki Kids forever</td>
      </tr>
    </tbody>
  </table>
 </div>
              
            
!

CSS

              
                body {
  font-size: 62.5%;
  line-height: 1.68;
  color: #333;
}

h1 {
  font-size: 1.6rem;
  font-weight: normal;
  text-align: center;
}

.scroll-box {
  overflow: auto;
  padding-bottom: 10px;
  
  table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
    
    thead {
      th {
        color: white;
        font-weight: normal;
        font-size: 1.2rem;
        padding: 5px 10px;
        border-right: 1px dotted white;
        width: 200px;
        
        &:first-of-type {
          width: 80px;
        }        
        &:nth-of-type(2) {
          background: #67D5B5;
        }
        &:nth-of-type(3) {
          background: #EE7785;
        }
        &:nth-of-type(4) {
          background:  #C89EC4;
        }
        &:last-of-type {
          background: #84B1ED;
        }
      }
    }
    
    tbody {
      th {
        font-size: 1rem;
        font-weight: normal;
        border-bottom: 1px dotted #ddd;
      }
      td {
        text-align: center;
        padding: 10px 20px;
        font-size: 1rem;
        border-bottom: 1px dotted #ddd;
      }
    }
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console