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

              
                <table id="prices">
  <tbody>
    <tr>
      <td>
        <h2>Heading</h2>
        <h4>$999.99</h4>
        <h5>Save $99.99!</h5>
        <p>Feature List</p>
        <p>Feature List</p>
        <p>Feature List</p>
        <p>Feature List</p>
        <p>Feature List</p>
        <a href="#">Click Here</a>
      </td>

      <td class="popular">
        <h2>Heading</h2>
        <h3>Most Popular Package</h3>
        <h4>$999.99</h4>
        <h5>Save $99.99!</h5>
        <p>Feature List</p>
        <p>Feature List</p>
        <p>Feature List</p>
        <p>Feature List</p>
        <p>Feature List</p>
        <a href="#">Click Here</a>
      </td>

      <td>
        <h2>Heading</h2>
        <h4>$999.99</h4>
        <h5>Save $99.99!</h5>
        <p>Feature List</p>
        <p>Feature List</p>
        <p>Feature List</p>
        <p>Feature List</p>
        <p>Feature List</p>
        <a href="#">Click Here</a>
      </td>
    </tr>
  </tbody>
</table>
              
            
!

CSS

              
                /* Variables & Mixins */

$heading-color1: #009342;
$price-color1: #30B643;
$savings-color1: #44D354;

$pop-heading-color: #FF9138;
$pop-price-color: #FEB63D;
$pop-savings-color: #F7CD6F;

$heading-color3: #018FFF;
$price-color3: #39B5FF;
$savings-color3: #65CAFC;

body {
  padding: 4em 0;
  background: #30343D;
}

#prices {
  max-width: 1200px;
  margin: auto;
  width: 100%;
  font-family: 'open sans';
  font-weight: normal;
}

.pricing-table {
  width: 95%;
  margin: auto auto 20px auto;
  position: relative;
  min-height: 340px;
  padding-bottom: 55px;
  text-align: center;
  background: #fff;
  // border-radius: 6px;
}

.pricing-table td {
  width: 33%;
  vertical-align: top;
  // border-radius:5px 5px 0 0;
}

.pricing-table h2 {
  display: block;
  margin-bottom: 0px;
  padding: 10px;
  font-size: 1.4em;
  background: $heading-color1;
  font-weight: 800;
  text-transform: uppercase;
  // border-radius: 5px 5px 0 0;
}

#prices td:last-child h2 {
  background: $heading-color3;
}

.pricing-table h3 {
  display: block;
  margin: 0;
  padding: 0 0 10px;
  background: #102e5c;
  font-size: 0.9em;
}

#prices td:last-child h3 {
  background: $heading-color3;
}

.pricing-table h4 {
  display: block;
  margin: 0;
  width: 100%;
  padding: 20px;
  background: $price-color1;
  font-size: 1.75em;
  box-sizing: border-box;
}

#prices td:last-child h4 {
  background: $price-color3;
}

.pricing-table h5 {
  display: block;
  margin: 0 0 15px 0;
  font-weight: 700;
  padding: 10px;
  background: $savings-color1;
}

#prices td:last-child h5 {
  background: $savings-color3;
}

.pricing-table h2,
.pricing-table h3,
.pricing-table h4,
.pricing-table h5 {
  color: #fff;
}

/* Popular Table */

.popular .pricing-table {
  margin-top: -10px;
  min-height: 400px;
}

.popular .pricing-table h2 {
  font-size: 1.8em;
  background: $pop-heading-color;
}

.popular .pricing-table h3 {
  background: $pop-heading-color;
}

.popular .pricing-table h4 {
  background: $pop-price-color;
}

.popular .pricing-table h5 {
  background: $pop-savings-color;
}

.pricing-table p {
  margin: 10px auto;
  padding: 5px 0 5px;
  width: 80%;
  font-weight:300;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.pricing-table h5 + p {
  border-top: 1px solid rgba(0,0,0,0);
}

.pricing-table a {
  display: block;
  margin: auto;
  width: 45%;
  padding: 10px 0;
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  font-size: 0.85em;
  color: #fff;
  background: #2F333C;
  text-decoration: none;
  text-transform: uppercase;
  // border-radius: 3px;
  transition: all .3s ease-in-out;
}

.popular .pricing-table a {
  background: #2F333C;
}

.pricing-table a:hover {
  background: #505A6B;
}

/*------------------------------------*/
/*---------- MEDIA QUERIES -----------*/
/*------------------------------------*/

@media screen and (max-width: 700px) {
  #prices td {
    display: block !important;
    width: 100% !important;
  }
  .pricing-table {
    min-height: 0;
  }
  .popular .pricing-table {
    margin-top: 0px;
  }
}
              
            
!

JS

              
                // Simple pricing table solution for clients to easily update in TinyMCE and WYSIWIG editors.

$(document).ready(function(){
  $('#prices td').wrapInner('<div class="pricing-table" />'); 
});
              
            
!
999px

Console