Pricing Table

By Andy Cochran

F6
#
How do I use This?

Replicates Foundation 5's Pricing Table. If you're making a rockin' marketing site for a subscription-based product, you're likely in need of a pricing table. These tables fill 100% of their container and are made from a simple unordered list.

HTML
<ul class="pricing-table">
  <li class="title">Enterprise</li>
  <li class="price">$99.99</li>
  <li class="description">An awesome description</li>
  <li>42 Rad Features</li>
  <li>7GB of Power</li>
  <li><a class="button" href="#">Buy Now</a></li>
</ul>

.pricing-table {
  background-color: $white;
  border: solid 1px $medium-gray;
  width: 100%;
  text-align: center;
  list-style-type: none;

  li {
    border-bottom: dotted 1px $medium-gray;
    padding: 0.875rem 1.125rem;

    &:last-child {
      border-bottom: 0;
    }
  }

  .title {
    background-color: $black;
    color: $white;
    border-bottom: 0;
  }

  .price {
    background-color: $light-gray;
    font-size: 2rem;
    border-bottom: 0;
  }

  .description {
    color: $dark-gray;
    font-size: $small-font-size;
  }

  :last-child {
    margin-bottom: 0;
  }
}


.pricing-table {
  background-color: #fefefe;
  border: solid 1px #cacaca;
  width: 100%;
  text-align: center;
  list-style-type: none;
}

.pricing-table li {
  border-bottom: dotted 1px #cacaca;
  padding: 0.875rem 1.125rem;
}

.pricing-table li:last-child {
  border-bottom: 0;
}

.pricing-table .title {
  background-color: #0a0a0a;
  color: #fefefe;
  border-bottom: 0;
}

.pricing-table .price {
  background-color: #e6e6e6;
  font-size: 2rem;
  border-bottom: 0;
}

.pricing-table .description {
  color: #8a8a8a;
  font-size: 80%;
}

.pricing-table :last-child {
  margin-bottom: 0;
}

JS