Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

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.

HTML

              
                <div class="container">
<h1>Ski Resort Lift Ticket Rates Responsive Table</h1>
<table class="table">
    <thead>
        <tr>
            <th>Type / Age Group</th>
            <th>Single Day</th>
            <th>2-of-3 Day*</th>
            <th>Afternoon</th>
            <th>3-PAK</th>
            <th>Buy Online + SAVE</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td data-label="Type / Age Group">Adult (23-64)</td>
            <td data-label="Single Day Prices">$110 | $125</td>
            <td data-label="2-of-3 Day*">$209</td>
            <td data-label="Afternoon Prices">$100 | $115</td>
            <td data-label="3-PAK"><a href="#" title="Click here to Buy Adult 3-PAK Lift Ticket" alt="Click here to Buy Adult 3-PAK Lift Ticket">$80/day</a></td>
            <td data-label="Buy Online + SAVE"><a class="btn btn-primary" href="#" title="Click here to Buy Adult Lift Ticket Online" alt="Click here to Buy Adult Lift Ticket Online">Buy Now</a></td>
        </tr>
        <tr>
            <td data-label="Type / Age Group">Young Adult (13-22)</td>
            <td data-label="Single Day Prices">$100 | $115</td>
            <td data-label="2-of-3 Day*">$189</td>
            <td data-label="Afternoon Prices">$90 | $105</td>
            <td data-label="3-PAK"><a href="#" title="Click here to Buy Young Adult 3-PAK Lift Ticket" alt="Click here to Buy Young Adult 3-PAK Lift Ticket">$73/day</a></td>
            <td data-label="Buy Online + SAVE"><a class="btn btn-primary" href="#" title="Click here to Buy Young Adult Lift Ticket Online" alt="Click here to Buy Young Adult Lift Ticket Online">Buy Now</a></td>
        </tr>
        <tr>
            <td data-label="Type / Age Group">Child (5-12)</td>
            <td data-label="Single Day Prices">$45 | $50</td>
            <td data-label="2-of-3 Day*">$90</td>
            <td data-label="Afternoon Prices">$40 | $44</td>
            <td data-label="3-PAK"><a href="#" title="Click here to Buy Child 3-PAK Lift Ticket" alt="Click here to Buy Child 3-PAK Lift Ticket">$45/day</a></td>
            <td data-label="Buy Online + SAVE"><a class="btn btn-primary" href="#" title="Click here to Buy Child Lift Ticket Online" alt="Click here to Buy Child Lift Ticket Online">Buy Now</a></td>
        </tr>
        <tr>
            <td data-label="Type / Age Group">Child (4 &amp; under)</td>
            <td data-label="Single Day Prices">FREE</td>
            <td data-label="2-of-3 Day*">FREE</td>
            <td data-label="Afternoon Prices">FREE</td>
            <td data-label="3-PAK">- </td>
            <td data-label="Buy Online">- </td>
        </tr>
        <tr>
            <td data-label="Type / Age Group">Senior (65-69)</td>
            <td data-label="Single Day Prices">$100 | $115</td>
            <td data-label="2-of-3 Day*">$189</td>
            <td data-label="Afternoon Prices">$90 | $105</td>
            <td data-label="3-PAK"><a href="#" title="Click here to Buy Senior 3-PAK Lift Ticket" alt="Click here to Buy Senior 3-PAK Lift Ticket">$73/day</a></td>
            <td data-label="Buy Online + SAVE"><a class="btn btn-primary" href="#" title="Click here to Buy Senior Lift Ticket Online" alt="Click here to Buy Senior Lift Ticket Online">Buy Now</a></td>
        </tr>
        <tr>
            <td data-label="Type / Age Group">Super Senior (70+)</td>
            <td data-label="Single Day Prices">$45 | $50</td>
            <td data-label="2-of-3 Day*">$90</td>
            <td data-label="Afternoon Prices">$40 | $44</td>
            <td data-label="3-PAK"><a href="#" title="Click here to Buy Super Senior 3-PAK Lift Ticket" alt="Click here to Buy Super Senior 3-PAK Lift Ticket">$45/day</a></td>
            <td data-label="Buy Online + SAVE"><a class="btn btn-primary" href="#" title="Click here to Buy Super Senior Lift Ticket Online" alt="Click here to Buy Super Senior Lift Ticket Online">Buy Now</a></td>
        </tr>
    </tbody>
</table>
  
</div> 
              
            
!

CSS

              
                body {
	 background: #ff7850;
}

h1 {
  font-size: 2em;
  color: #333;
  padding: 1em;
}

 table {
	 border: 0;
	 width: 100%;
	 margin: 0;
	 padding: 0;
	 border-collapse: collapse;
	 border-spacing: 0;
	 box-shadow: 0 1px 1px rgba(0, 0, 0, .3);
}
 table thead {
	 background: #ffbca7;
	 height: 60px !important;
}
 table thead tr th:first-child {
	 padding-left: 45px;
}
 table thead tr th {
	 text-transform: uppercase;
	 line-height: 60px !important;
	 text-align: left;
	 font-size: 11px;
	 padding-top: 0px !important;
	 padding-bottom: 0px !important;
}
 table tbody {
	 background: #fff;
}
 table tbody tr {
	 border-top: 1px solid #e5e5e5;
	 height: 60px;
}
 table tbody tr td:first-child {
	 padding-left: 45px;
}
 table tbody tr td {
	 height: 60px;
	 line-height: 60px !important;
	 text-align: left;
	 padding: 0 10px;
	 font-size: 14px;
}
 table tbody tr td i {
	 margin-right: 8px;
}

 @media screen and (max-width: 800px) {
	 table {
		 border: 1px solid transparent;
		 box-shadow: none;
	}
	 table thead {
		 display: none;
	}
	 table tbody tr {
		 border-bottom: 25px solid #ff7850;
	}
	 table tbody tr td:first-child {
		 padding-left: 10px;
	}
	 table tbody tr td:before {
		 content: attr(data-label);
		 float: left;
		 font-size: 10px;
		 text-transform: uppercase;
		 font-weight: bold;
	}
	 table tbody tr td {
		 display: block;
		 text-align: right;
		 font-size: 14px;
		 padding: 0px 10px !important;
		 box-shadow: 0 1px 1px rgba(0, 0, 0, .3);
	}
   table tbody tr:nth-child(2n) {
    background: #ffbca7;
}
}
 
              
            
!

JS

              
                
              
            
!
999px

Console