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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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="price-cards">
  <div class="price-qbo">
    <div class="price-title">Small businesses that need accounting, invoicing or payroll</div>
    <div class="price-wrap">
      <div class="price-col">
        <div class="price-heading price-mobileclosed">Simple Start</div>
        <div>
          <div class="price-now">
            <span class="price-was">
              <span class="price-big">£7</span>
              <span class="price-small">.00</span>
            </span>
            &nbsp;
            <span class="price-big">£5</span>
            <span class="price-small">.60</span>/month
          </div>
          <div class="price-save">Save 20% for 12 months</div>
          <div><a href="#" class="button">Buy now and save 20%</a></div>
          <div class="price-try">or <a href="#">try if free for 30-days</a> </div>
          <p class="price-toplevel">For key accounting tasks:</p>
          <ul class="price-features">
            <li>Customise & send e-invoices</li>
            <li>Track your expenses on the go</li>
            <li>Download bank transactions</li>
            <li>Track & calculate VAT</li>
            <li>Accept credit/debit card payments</li>
            <li>Manage payroll & pensions for £1 per employee/month</li>
          </ul>
        </div>
      </div>
      <div class="price-col price-sep">
        <div class="price-heading price-mobileopen">Essentials</div>
        <div>
          <div class="price-now">
            <span class="price-was">
              <span class="price-big">£15</span>
              <span class="price-small">.00</span>
            </span>
            &nbsp;
            <span class="price-big">£10</span>
            <span class="price-small">.50</span>/month
          </div>
          <div class="price-save">Save 30% for 12 months</div>
          <div><a href="#" class="button">Buy now and save 30%</a></div>
          <div class="price-try">or <a href="#">try if free for 30-days</a> </div>
          <p class="price-toplevel">Faster business bookkeeping:</p>
          <ul class="price-features">
            <li>Customise & send e-invoices</li>
            <li>Track your expenses on the go</li>
            <li>Download bank transactions</li>
            <li>Track & calculate VAT</li>
            <li>Accept credit/debit card payments</li>
            <li>Manage payroll & pensions for £1 per employee/month</li>
            <li><b>View real-time dashboards</b></li>
            <li><b>Manage supplier bills</b></li>
            <li><b>Schedule recurring invoices</b></li>
            <li><b>Handle foreign currencies</b></li>
          </ul>
        </div>
      </div>
      <div class="price-col">
        <div class="price-heading price-mobileclosed">Plus</div>
        <div>
          <div class="price-now">
            <span class="price-was">
              <span class="price-big">£25</span>
              <span class="price-small">.00</span>
            </span>
            &nbsp;
            <span class="price-big">£15</span>
            <span class="price-small">.00</span>/month
          </div>
          <div class="price-save">Save 40% for 12 months</div>
          <div><a href="#" class="button">Buy now and save 40%</a></div>
          <div class="price-try">or <a href="#">try if free for 30-days</a> </div>
          <p class="price-toplevel">Full financial management:</p>
          <ul class="price-features">
            <li>Customise & send e-invoices</li>
            <li>Track your expenses on the go</li>
            <li>Download bank transactions</li>
            <li>Track & calculate VAT</li>
            <li>Accept credit/debit card payments</li>
            <li>Manage payroll & pensions for £1 per employee/month</li>
            <li>View real-time dashboards</li>
            <li>Manage supplier bills</li>
            <li>Schedule recurring invoices</li>
            <li>Handle foreign currencies</li>
            <li><b>Prepare budgets & compare to actuals</b></li>
            <li><b>Create purchase orders</b></li>
            <li><b>Track & bill employee time</b></li>
            <li><b>Manage stock levels</b></li>
            <li><b>Categorise sales & expenses by location, project or type</b></li>
          </ul>
        </div>
      </div>
    </div>
  </div>
  <div class="price-or">
    or
  </div>
  <div class="price-qbse">
    <div class="price-title">Self-Employed & Freelance</div>
    <div class="price-wrap">
      <div class="price-col">
        <div class="price-heading price-mobileclosed">Self-Employed</div>
        <div>
          <div class="price-now">
            <span class="price-was">
              <span class="price-big">£6</span>
              <span class="price-small">.00</span>
            </span>
            &nbsp;
            <span class="price-big">£4</span>
            <span class="price-small">.80</span>/month
          </div>
          <div class="price-save">Save 20% for 12 months</div>
          <div><a href="#" class="button">Buy now and save 20%</a></div>
          <div class="price-try">or <a href="#">try if free for 30-days</a> </div>
          <p class="price-toplevel">For tax & financial clarity:</p>
          <ul class="price-features">
            <li>Separate business & personal expenses</li>
            <li>Estimate tax payments</li>
            <li>Tax report matches HMRC self-assessment form</li>
            <li>Track deductible mileage</li>
            <li>Track income & expenses </li>
            <li>Connect to your online banking</li>
          </ul>
        </div>
      </div>
    </div>
  </div>
<div>
<div class="price-clear"></div>
              
            
!

CSS

              
                .price-cards {
  max-width:940px;
  margin:0 auto;
  font:14px/1.5 "Helvetica Neue",Helvetica,Arial,sans-serif;
  text-align:center;
  padding: 20px;
}

.price-clear {
  clear:both;
}

.price-qbo {
  float: right;
  width: 72%;
}

.price-qbse {
  float: left;
  width: 24%
}

.price-or { 
  width:4%;
  float:right;
  text-align:center;
  padding:10px 0;
  color:#999;
}

.price-title{
  color:#FFF;
  padding:10px;
  border-top-left-radius:3px;
  border-top-right-radius:3px;
}

.price-qbse .price-title {
  background:#0078C1;
}

.price-qbo .price-title {
  background:#009E2C;
}

.price-wrap {
  border:1px solid #CCC;
  border-top:0;
  zoom:1;
}

.price-wrap:before, .price-wrap:after {
  content: "";
  display: table;
}

.price-wrap:after {
  clear:both;
}

.price-col {
  box-sizing:border-box;
  margin:10px 0;
  padding:5px 15px;
}

.price-qbo .price-col {
  float:left;
  width:33.33%;
}

.price-sep {
  border-left:1px solid #CCC;
  border-right:1px solid #CCC;
}

.price-heading {
  font-size:18px;
  font-weight:bold;
  margin-bottom:8px;
}

.price-was {
  color:#222;
  position:relative;
}
.price-was:after {
  content:"";
  position:absolute;
  left:0;
  top:5px;
  width:100%;
  height:2px;
  background:#ff5406;
  -webkit-transform: rotate(-10deg);
  transform: rotate(-10deg);
}

.price-now {
  color:#ff5406;
  margin:0 -10px;
}

.price-strike {
  text-decoration: line-through;
}

.price-big {
  font-size:18px;
}

.price-small {
  position:relative;
  top:-3px;
  left:-1px;
}

.price-save {
  font-size:12px;
}

.price-toplevel {
  font-weight:bold;
  text-align:left;
  padding-top:15px;
  font-size:13px;
}

.price-cards .button {
  background:#ff5406;
  color:#FFF;
  text-decoration:none;
  padding:10px 15px;
  text-transform:uppercase;
  display:block;
  border-radius:3px;
  font-size:13px;
  width:100%;
  box-sizing:border-box;
  margin:15px 0 5px 0;
}

.price-try {
 color:#999;
}

.price-try a {
  font-size:12px;
  color:#202020;
 text-decoration:underline;
}

.price-features {
  text-align:left;
  list-style-type: initial;
  list-style-position: initial;
  margin-left: 15px;
  font-size:12px;
  line-height:1.2;
  padding-top:10px;
}

.price-features li {
  padding:2px 0;
}

.price-features b {
  font-weight:bold;
}

@media (max-width: 767px) {
  .price-qbo,
  .price-qbse,
  .price-or {
    float: none;
    width: 100%;
  }
  .price-sep {
    border:0;
  }
  .price-title {
    display:none;
  }
  .price-qbo .price-col {
    float:none;
    width:100%;
  }
  .price-qbo .price-heading {
    background:#2D9F1D;
    color:#FFF;
    font-weight:normal;
  }
  .price-qbse .price-heading {
    background:#0076C5;
    color:#FFF;
    font-weight:normal;
  }
  .price-col {
    height:auto !important;
    padding:0 20px;
    margin:0;
    background:#f5f5f5;
  }
  .price-heading {
    border-top:1px solid #CCC;
    margin:0 -20px;
    padding:10px 0;
    position:relative;
    cursor:pointer;
  }
  .price-mobileclosed:after, .price-mobileopen:after, .price-mobileclosed:before, .price-mobileopen:before {
    content:"";
    position:absolute;
    right:15px;
    top:14px;
    display:block;
    z-index:1;
    width: 18px;
    height: 18px;
    transition: all 0.2s;
    background:url(http://quickbooks-uk-s3.intuitstatic.com/showroom_cms/image/content/dam/intuit/quickbooks/i18n/en/uk/stepup/su-arrow_e0220251-db53-476a-83a8-d9a204b16a13.svg);
  }
  
 
  
  .price-mobileopen:after, .price-mobileopen:before {
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
  }
  .price-mobileclosed + div, .price-mobileopen + div {
    transition: all 0.2s;
  }
  .price-mobileclosed + div {
    display:none;
  }
  .price-mobileopen + div {
    display:block;
  }
  .price-features {
    padding-bottom:20px;
  }
  .price-now {
    padding-top:15px;
  }
}
              
            
!

JS

              
                $(window).resize(function() {
  // quick and dirty auto-height on resize and load
  $('.price-col').css('height','auto');
    $('.price-col').css({
        'height': $('.price-wrap').height()-15
    });
}).resize();

$('.price-heading').on( "click", function() {
  if ( $( this ).hasClass( "price-mobileclosed" ) ) {
    $( this ).removeClass('price-mobileclosed').addClass('price-mobileopen');
  } else {
    $( this ).removeClass('price-mobileopen').addClass('price-mobileclosed');
  }
});
              
            
!
999px

Console