Pen Settings



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


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


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.


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.

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.


<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>HTML5/CSS Responsive Table Demo</title>

<h1>HTML5/CSS Responsive NBA Players Comparative Table</h1>
<table class="table">
    <th class="table__heading">Player</th>
    <th class="table__heading">Seasons</th>
    <th class="table__heading">Points</th>
    <th class="table__heading">Jersey Number</th>
    <th class="table__heading">Teams</th>
    <th class="table__heading">Career</th>
  <tr class="table__row">
    <td class="table__content" data-heading="Player">Kareem Abdul-Jabbar</td>
    <td class="table__content" data-heading="Seasons">20</td>
    <td class="table__content" data-heading="Points">36.387</td>
    <td class="table__content" data-heading="Jersey Number">33</td>
    <td class="table__content" data-heading="Teams">Bucks / Lakers</td>
    <td class="table__content" data-heading="Career">1969-1989</td>
    <tr class="table__row">
    <td class="table__content" data-heading="Name">Karl Malone</td>
    <td class="table__content" data-heading="Seasons">19</td>
    <td class="table__content" data-heading="Points">36.928</td>
    <td class="table__content" data-heading="Jersey Number">32 / 11</td>
    <td class="table__content" data-heading="Teams">Jazz / Lakers</td>
    <td class="table__content" data-heading="Career">1985-2004</td>
  <tr class="table__row">
    <td class="table__content" data-heading="Name">Kobe Bryant</td>
    <td class="table__content" data-heading="Seasons">20</td>
    <td class="table__content" data-heading="Points">33.643</td>
    <td class="table__content" data-heading="Jersey Number">8 / 24</td>
    <td class="table__content" data-heading="Teams">Lakers</td>
    <td class="table__content" data-heading="Career">1996-2016</td>
  <tr class="table__row">
    <td class="table__content" data-heading="Name">Michael Jordan</td>
    <td class="table__content" data-heading="Seasons">15</td>
    <td class="table__content" data-heading="Points">32.292</td>
    <td class="table__content" data-heading="Jersey Number">23 / 45</td>
    <td class="table__content" data-heading="Teams">Bulls / Wizards</td>
    <td class="table__content" data-heading="Career">1984-2003</td>
  <tr class="table__row">
    <td class="table__content" data-heading="Name">Wilt Chamberlain</td>
    <td class="table__content" data-heading="Seasons">14</td>
    <td class="table__content" data-heading="Points">31.419</td>
    <td class="table__content" data-heading="Jersey Number">13</td>
    <td class="table__content" data-heading="Teams">Warriors / 76ers / Lakers</td>
    <td class="table__content" data-heading="Career">1959-1973</td>
<h4><a href="" target="_blank">Land Of Basketball</a></h4>



                * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

body {
  font-weight: 400;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  background-color: #fafafa;

td, th { padding: 8px; padding: .5rem;

th {
  text-align: left;
  font-weight: 300;
  font-size: 20px;
  font-size: 1.25rem;

td { font-family: 'Avenir Next', 'Segoe UI', 'Lucida Grande', sans-serif; }

.table {
  width: 100%;
  padding: 16px;
  padding: 1rem;

.table__heading { border-bottom: 2px solid #FFC842; }
 @media (max-width: 32rem) {
 .table__heading {
display: none;
 .table__content {
 display: block;
 padding: .5rem 0;
 .table__row {
 margin: .25rem 1rem;
 padding: .5rem 0;
 display: block;
 border-bottom: 2px solid #FFC842;
 .table__content:before {
 content: attr(data-heading);
 display: inline-block;
 width: 5rem;
 margin-right: .5rem;
 color: #999;
 font-size: .75rem;
 font-weight: 700;
 font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
 text-transform: uppercase;
 letter-spacing: 2px;

h1, h4 {
  margin: 50px auto 50px auto;
  text-align: center;