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="container">
<table class="table">
  <!--<caption></caption>-->
  <thead>
    <tr>
      <th>TH Column 1</th>
      <th>TH Column 2</th>
      <th>TH Column 3</th>
      <th>TH Column 4</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Row 1</td>
      <td>
          <p>Bacon ipsum dolor amet biltong swine tri-tip sausage filet mignon kielbasa salami doner turkey picanha drumstick pork loin cupim shankle boudin.</p>
        </td>
      <td>
        <p>Tail biltong strip steak salami chicken short ribs alcatra turducken burgdoggen chuck doner bacon turkey tenderloin. </p>
      </td>
      <td><p>Corned beef kevin beef boudin short ribs burgdoggen sausage. Tongue turducken meatloaf boudin.</p></td>
    </tr>
    <tr>
      <td>Row 2</td>
      <td>
          <p>Shank chuck andouille prosciutto salami, spare ribs tenderloin short loin bresaola corned beef. </p>
      </td>
      <td>
        <p>Pork belly ribeye bacon burgdoggen porchetta fatback pork prosciutto biltong chuck meatball flank shank. </p>
      </td>
      <td>
        <p>Flank frankfurter t-bone shank picanha, brisket tongue pork belly. </p>
      </td>
    </tr>
    <tr>
      <td>Row 3</td>
      <td>
        <p>Ham hock meatball corned beef doner short loin.</p>
      </td>
      <td>
        <p>Ground round beef flank meatloaf tail kielbasa t-bone shankle drumstick.</p>
      </td>
      <td>
        <p>Tail strip steak biltong short ribs pig ham. </p>
      </td>
    </tr>
    <tr>
      <td>Row 4</td>
      <td>
        <p>Pork loin picanha capicola hamburger shoulder, corned beef t-bone kevin sirloin pork belly ground round andouille alcatra shankle.</p>
      </td>
      <td>
        <p>Biltong cupim pork belly cow short ribs pork, swine sirloin spare ribs short loin chuck strip steak fatback turkey hamburger.</p>
      </td>
      <td>
          <p>Chicken doner rump pork tail, pig spare ribs leberkas meatloaf meatball beef ribs flank. </p>
      </td>
    </tr>
  </tbody>
</table>
</div>
            
          
!
            
              body {
   background-color: #f2f2f2;
  font-family: Quicksand;
}
.container {
  max-width: 800px;
  margin: auto;
  padding-top: 50px;
  padding-bottom: 50px;
}

/* Custom Table Theme */
table {
  table-layout: fixed;
}
.table>thead>tr>th,
.table>tbody>tr>th,
.table>tfoot>tr>th,
.table>thead>tr>td,
.table>tbody>tr>td,
.table>tfoot>tr>td {
  border-color: #f2f2f2; /* matches body/section background color */
  border-top-width: 2px;
  padding: 15px;
}
table {
  background: rgba(59,155,134,1);
  background: -moz-linear-gradient(-45deg, rgba(59,155,134,1) 0%, rgba(241,148,91,1) 60%, rgba(241,148,91,1) 100%);
  background: -webkit-gradient(left top, right bottom, color-stop(0%, rgba(59,155,134,1)), color-stop(60%, rgba(241,148,91,1)), color-stop(100%, rgba(241,148,91,1)));
  background: -webkit-linear-gradient(-45deg, rgba(59,155,134,1) 0%, rgba(241,148,91,1) 60%, rgba(241,148,91,1) 100%);
  background: -o-linear-gradient(-45deg, rgba(59,155,134,1) 0%, rgba(241,148,91,1) 60%, rgba(241,148,91,1) 100%);
  background: -ms-linear-gradient(-45deg, rgba(59,155,134,1) 0%, rgba(241,148,91,1) 60%, rgba(241,148,91,1) 100%);
  background: linear-gradient(135deg, rgba(59,155,134,1) 0%, rgba(241,148,91,1) 60%, rgba(241,148,91,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3b9b86', endColorstr='#f1945b', GradientType=1 );
}
table tr td:first-child {
  vertical-align: middle;
  font-size: 18px;
  text-transform: uppercase;
}
table th {
  color: rgba(255,255,255,0.9);
}
table tr td {
  background-color: rgba(255,255,255,0.65);
}
table tr td:nth-child(3) {
  background-color: rgba(255,255,255,0.735);
}
table tr td:last-child {
  background-color: rgba(255,255,255,0.8);
}
table ul {
  padding-left: 17px;
  list-style-type: circle;
}
table tr td:first-child {
  background-color: transparent;
  color: #fff;
}

@media screen and (max-width: 678px) {
  tbody td {
    text-align: left;
  }
  tbody td:before {
    font-weight: 700;
    text-align: left;
  }
}
@media screen and (min-width: 679px) {
  /* For Faux rounded tr corners */
  table th,
  table td {
    position: relative;
  }
  table tr th:first-child:before,
  table tr th:first-child:after,
  table tr th:last-child:before,
  table tr th:last-child:after,
  table tr td:first-child:before,
  table tr td:first-child:after,
  table tr td:last-child:before,
  table tr td:last-child:after {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    background-color: transparent;
    position: absolute;
  }
  /* border colors match the previously defined border colors and background/section color */
  table tr th:first-child:before,
  table tr td:first-child:before {
    top: -2px;
    left: -2px;
    border-top: 2px solid #f2f2f2;
    border-left: 2px solid #f2f2f2;
    border-top-left-radius: 6px;
  }
  table tr th:first-child:after,
  table tr td:first-child:after {
    bottom: -2px;
    left: -2px;
    border-bottom: 2px solid #f2f2f2;
    border-left: 2px solid #f2f2f2;
    border-bottom-left-radius: 6px;
  }
  table tr th:last-child:before,
  table tr td:last-child:before {
    top: -2px;
    right: -2px;
    border-top: 2px solid #f2f2f2;
    border-right: 2px solid #f2f2f2;
    border-top-right-radius: 6px;
  }
  table tr th:last-child:after,
  table tr td:last-child:after {
    bottom: -2px;
    right: -2px;
    border-bottom: 2px solid #f2f2f2;
    border-right: 2px solid #f2f2f2;
    border-bottom-right-radius: 6px;
  }
  /* end tr corners */
}
            
          
!
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