<link href='https://fonts.googleapis.com/css?family=Comfortaa:400,700' rel='stylesheet' type='text/css'>
<h1>Table Style</h1>
  <h2>Scroll</h2>

<section>
<div class="table-wrapper">
  <table>
  <thead>
    <tr>
      <th>Big heading1</th>
      <th>Big heading2</th>
      <th>Big heading3</th>
      <th>Big heading4</th>
      <th>Big heading5</th>
      <th>Big heading6</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Content1</td>
      <td>Content2</td>
      <td>Content3</td>
      <td>Content4</td>
      <td>Content5</td>
      <td>Content6</td>
    </tr>
    <tr>
      <td>Content7</td>
      <td>Content8</td>
      <td>Content9</td>
      <td>Content10</td>
      <td>Content11</td>
      <td>Content12</td>
    </tr>
   </tbody>
</table>
</div>
<h3>↓</h3>
<div class="table-wrapper sp">
  <table>
  <thead>
    <tr>
      <th>Big heading1</th>
      <th>Big heading2</th>
      <th>Big heading3</th>
      <th>Big heading4</th>
      <th>Big heading5</th>
      <th>Big heading6</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Content1</td>
      <td>Content2</td>
      <td>Content3</td>
      <td>Content4</td>
      <td>Content5</td>
      <td>Content6</td>
    </tr>
    <tr>
      <td>Content7</td>
      <td>Content8</td>
      <td>Content9</td>
      <td>Content10</td>
      <td>Content11</td>
      <td>Content12</td>
    </tr>
   </tbody>
</table>
</div>
</section>
body{
  font-family: 'Comfortaa', cursive;
}

h1 {
  text-align: center;
  letter-spacing: 2px;
  font-weight: 300;
  font-size:40px;
  margin-top: 80px;
}

h2{
  text-align:center;
  font-size:25px;
  font-weight: 100;
  margin-top: 20px;
}

h3{
  text-align:center;
  margin: 30px 0px;
  font-size: 30px;
}

section{
  width: 700px;
  margin:50px auto;
  p{
    font-size:20px;
    font-weight: bold;
    margin-bottom: 15px;
  }
}

table{
  width:100%;
  margin: auto;
  tr{
    width: 100%;
  }
  th,td{
    box-sizing:border-box;
    padding: 15px;
  }
  thead{
    th{
      background: #000;
      color: #fff;
      text-align: left;
    }
  }

  tbody{
    text-align: left;
    th{
      background: #eee;
    }
  }
}

.table{
  width: 100%;
  display:table;
  .row{
    display:table;
    width: 100%;
  }
  .column{
    box-sizing:border-box;
    padding: 15px;
    width: 25%;
    text-align: left;
    display:table-cell;
  }
  .table-head{
    display:table;
    text-align: left;
    width: 100%;
    .column{
      background: #000;
      color: #fff;
      text-align: left;
      display:table-cell;
    }
  }
  tbody{
    display:table;
    width: 100%;
    .column{
      color: #000;
    }
  }
}

.sp{
  width: 420px;
  overflow-x: scroll;
  margin:auto;
}

.sp::-webkit-scrollbar{
    background: #fff;
    border-radius: 5px;
    height: 4px;
    border: 1px solid #000;
}

.sp::-webkit-scrollbar-thumb{
  background:#000;
  border-radius: 5px;
}

@media only screen and (max-width:420px){
  body{
    width: 100%;
  }
  .sp{
    width: 100%;
  }
  .table-wrapper{
    width: 100%;
    overflow-x: scroll;
  }
  .table-wrapper::-webkit-scrollbar{
    background: #fff;
    border-radius: 5px;
    height: 4px;
    border: 1px solid #000;
  }
  .table-wrapper::-webkit-scrollbar-thumb{
    background:#000;
    border-radius: 5px;
  }
  section{
    box-sizing:border-box;
    width: 100%;
    padding: 0px 20px;
  }
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js