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

              
                <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>
              
            
!

CSS

              
                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 */
}
              
            
!

JS

              
                
              
            
!
999px

Console