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="responsive-table">
    <thead>
      <tr>
        <th scope="col">Film Title</th>
        <th scope="col">Released</th>
        <th scope="col">Studio</th>
        <th scope="col">Worldwide Gross</th>
        <th scope="col">Domestic Gross</th>
        <th scope="col">International Gross</th>
        </tr>
    </thead>
    <tfoot>
      <tr>
        <td></td>
      </tr>
    </tfoot>
    <tbody>
      <tr>
        <th scope="row">Avatar</th>
        <td data-title="Released">2009</td>
        <td data-title="Studio">20th Century Fox</td>
        <td data-title="Worldwide Gross" data-type="currency">$2,845,899,541	</td>
        <td data-title="Domestic Gross" data-type="currency">$760,507,625</td>
        <td data-title="International Gross" data-type="currency">$2,085,391,916</td>
      </tr>
      <tr>
        <th scope="row">Avengers: Endgame</th>
        <td data-title="Released">2019</td>
        <td data-title="Studio">Walt Disney</td>
        <td data-title="Worldwide Gross" data-type="currency">$2,797,800,564	</td>
        <td data-title="Domestic Gross" data-type="currency">$858,373,000</td>
        <td data-title="International Gross" data-type="currency">$1,939,427,564</td>
      </tr>
      <tr>
        <th scope="row">Titanic</th>
        <td data-title="Released">1997</td>
        <td data-title="Studio">Paramount Pictures</td>
        <td data-title="Worldwide Gross" data-type="currency">$659,363,944</td>
        <td data-title="Domestic Gross" data-type="currency">$400,953,009</td>
        <td data-title="International Gross" data-type="currency">$1,548,622,601</td>
      </tr>
       <tr>
        <th scope="row">Star Wars Ep. VII: The Force Awakens</th>
        <td data-title="Released">2015</td>
        <td data-title="Studio">Disney Pixar</td>
        <td data-title="Worldwide Gross" data-type="currency">$936,662,225</td>
        <td data-title="Domestic Gross" data-type="currency">$608,581,744</td>
        <td data-title="International Gross" data-type="currency">$1,127,953,592</td>
      </tr>
      <tr>
        <th scope="row">Avengers: Infinity War</th>
        <td data-title="Released">2018</td>
        <td data-title="Studio">Walt Disney</td>
        <td data-title="Worldwide Gross" data-type="currency">$2,048,359,754</td>
        <td data-title="Domestic Gross" data-type="currency">$678,815,482</td>
        <td data-title="International Gross" data-type="currency">$1,369,544,272</td>
      </tr>
      <tr>
        <th scope="row">Spider-Man: No Way Home</th>
        <td data-title="Released">2021</td>
        <td data-title="Studio">Walt Disney</td>
        <td data-title="Worldwide Gross" data-type="currency">$1,890,491,530</td>
        <td data-title="Domestic Gross" data-type="currency">$804,275,316</td>
        <td data-title="International Gross" data-type="currency">$1,086,216,214</td>
      </tr>
      <tr>
        <th scope="row">Jurassic World</th>
        <td data-title="Released">2015</td>
        <td data-title="Studio">Universal</td>
        <td data-title="Worldwide Gross" data-type="currency">$1,669,979,967</td>
        <td data-title="Domestic Gross" data-type="currency">$652,306,625</td>
        <td data-title="International Gross" data-type="currency">$1,017,673,342</td>

      </tr>
      <tr>
        <th scope="row">The Lion King</th>
        <td data-title="Released">2019</td>
        <td data-title="Studio">Walt Disney</td>
        <td data-title="Worldwide Gross" data-type="currency">$543,638,043</td>
        <td data-title="Domestic Gross" data-type="currency">$264,624,300</td>
        <td data-title="International Gross" data-type="currency">$1,110,729,382</td>
      </tr>
      <tr>
        <th scope="row">Furious 7</th>
        <td data-title="Released">2015</td>
        <td data-title="Studio">Universal</td>
        <td data-title="Worldwide Gross" data-type="currency">$1,516,881,526</td>
        <td data-title="Domestic Gross" data-type="currency">$353,007,020</td>
        <td data-title="International Gross" data-type="currency">$1,163,874,506</td>
      </tr>
      <tr>
        <th scope="row">The Avengers</th>
        <td data-title="Released">2012</td>
        <td data-title="Studio">Walt Disney</td>
        <td data-title="Worldwide Gross" data-type="currency">$1,515,100,211</td>
        <td data-title="Domestic Gross" data-type="currency">$623,357,910</td>
        <td data-title="International Gross" data-type="currency">$891,742,301</td>
      </tr>
    </tbody>
  </table>
</div>
              
            
!

CSS

              
                
 *, *:before, *:after {
	 box-sizing: inherit;
}
 body {
	 color: #131e29;
   font-family: 'noto', arial, sans-serif;
   font-size: 14px;
}
 a {
	 color: #0074cc;
}
 a:hover, a:focus {
	 color: #418FDE;
}
 .container {
	 margin: 0;
}
 @media (min-width: 672px) {
	 .container {
		 margin: 0;
	}
}
 @media (min-width: 1050px) {
	 .container {
		 margin: 0;
		 max-width: 1050px;
	}
}
 .responsive-table {
	 width: 100%;
	 margin-bottom: 1.5em;
	 border-spacing: 0;
}
 @media (min-width: 672px) {
	 .responsive-table {
		 font-size: 0.9em;
	}
}
 @media (min-width: 868px) {
	 .responsive-table {
		 font-size: 1em;
	}
}
 .responsive-table thead {
	 position: absolute;
	 clip: rect(1px 1px 1px 1px);
	/* IE6, IE7 */
	 padding: 0;
	 border: 0;
	 height: 1px;
	 width: 1px;
	 overflow: hidden;
}
 @media (min-width: 672px) {
	 .responsive-table thead {
		 position: relative;
		 clip: auto;
		 height: auto;
		 width: auto;
		 overflow: auto;
	}
}
 .responsive-table thead th {
	 background-color: #131e29;
	 border: 0px solid #DBE2E9;
	 font-weight: normal;
	 text-align: center;
	 color: white;
}
 .responsive-table thead th:first-of-type {
	 text-align: left;
}
 .responsive-table tbody, .responsive-table tr, .responsive-table th, .responsive-table td {
	 display: block;
	 padding: 0;
	 text-align: left;
	 white-space: normal;
}
 @media (min-width: 672px) {
	 .responsive-table tr {
		 display: table-row;
	}
}
 .responsive-table th, .responsive-table td {
	 padding: 0.5em;
	 vertical-align: middle;
}
 @media (min-width: 420px) {
	 .responsive-table th, .responsive-table td {
		 padding: 0.75em 0.5em;
	}
}
 @media (min-width: 672px) {
	 .responsive-table th, .responsive-table td {
		 display: table-cell;
		 padding: 0.5em;
	}
}
 @media (min-width: 868px) {
	 .responsive-table th, .responsive-table td {
		 padding: 0.75em 0.5em;
	}
}
 @media (min-width: 1050px) {
	 .responsive-table th, .responsive-table td {
		 padding: 0.75em;
	}
}
 .responsive-table caption {
	 margin-bottom: 1em;
	 font-size: 1em;
	 font-weight: bold;
	 text-align: center;
}
 @media (min-width: 672px) {
	 .responsive-table caption {
		 font-size: 1.5em;
	}
}

 @media (min-width: 868px) {
	 .responsive-table tfoot {
		 font-size: 14px;
	}
}
 @media (min-width: 672px) {
	 .responsive-table tbody {
		 display: table-row-group;
	}
}
 .responsive-table tbody tr {
	 margin-bottom: 1em;
}
 @media (min-width: 672px) {
	 .responsive-table tbody tr {
		 display: table-row;
		 border-width: 1px;
	}
}
 .responsive-table tbody tr:last-of-type {
	 margin-bottom: 0;
}
 @media (min-width: 672px) {
	 .responsive-table tbody tr:nth-of-type(even) {
		 background-color: #ffffff;
	}
}
 .responsive-table tbody th[scope="row"] {
	 background-color: #131e29;
	 color: #ffffff;
   font-size: 14px;
}
 @media (min-width: 420px) {
	 .responsive-table tbody th[scope="row"] {
		 border-left: 1px solid #DBE2E9;
		 border-bottom: 1px solid #DBE2E9;
     font-size: 14px;
	}
}
 @media (min-width: 672px) {
	 .responsive-table tbody th[scope="row"] {
		 background-color: transparent;
		 color: #131e29;
		 text-align: left;
     font-size: 14px;
     font-weight: normal;
	}
}
 .responsive-table tbody td {
	 text-align: right;
}
 @media (min-width: 672px) {
	 .responsive-table tbody td {
		 border-left: 1px solid #DBE2E9;
		 border-bottom: 1px solid #DBE2E9;
		 text-align: center;
	}
}
 @media (min-width: 672px) {
	 .responsive-table tbody td:last-of-type {
		 border-right: 1px solid #DBE2E9;
	}
}
 .responsive-table tbody td[data-type=currency] {
	 text-align: right;
}
 .responsive-table tbody td[data-title]:before {
	 content: attr(data-title);
	 float: left;
	 font-size: 12px;
	 color: #131e29;
   font-weight: bold;
}
 @media (min-width: 420px) {
	 .responsive-table tbody td[data-title]:before {
		 font-size: 14px;
	}
}
 @media (min-width: 672px) {
	 .responsive-table tbody td[data-title]:before {
		 content: none;
	}
}
 
              
            
!

JS

              
                
              
            
!
999px

Console