cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

              <h2>Responsive Table with RWD-Table-Patterns</h2>

<div class="container">
  <div class="row">
    <div class="col-xs-12">
      <div class="table-responsive" data-pattern="priority-columns">
        <table summary="This table shows how to create responsive tables using RWD-Table-Patterns' functionality" class="table table-bordered table-hover">
          <caption class="text-center">An example of a responsive table based on RWD-Table-Patterns' <a href="http://gergeo.se/RWD-Table-Patterns/" target="_blank"> solution</a>:</caption>
              <th data-priority="1">Languages</th>
              <th data-priority="2">Population</th>
              <th data-priority="3">Median Age</th>
              <th data-priority="4">Area (Km²)</th>
              <td>Spanish (official), English, Italian, German, French</td>
              <td>English 79%, native and other languages</td>
              <td>Greek 99% (official), English, French</td>
              <td>Luxermbourgish (national) French, German (both administrative)</td>
              <td>Russian, others</td>
              <td>Swedish, small Sami- and Finnish-speaking minorities</td>
              <td colspan="5" class="text-center">Data retrieved from <a href="http://www.infoplease.com/ipa/A0855611.html" target="_blank">infoplease</a> and <a href="http://www.worldometers.info/world-population/population-by-country/" target="_blank">worldometers</a>.</td>
      </div><!--end of .table-responsive-->

<p class="p">Demo by George Martsoukos. <a href="http://www.sitepoint.com/responsive-data-tables-comprehensive-list-solutions" target="_blank">See article</a>.</p>
              h2 {
  text-align: center;
  padding: 20px 0;

.table-bordered {
  border: 1px solid #ddd !important;

table caption {
	padding: .5em 0;

@media screen and (max-width: 767px) {
  table caption {
    display: none;

.p {
  text-align: center;
  padding-top: 140px;
  font-size: 14px;
              // See:
// http://www.sitepoint.com/responsive-data-tables-comprehensive-list-solutions
Loading ..................