Elegant Pricing Table Cards In CSS

Category: CSS & CSS3 | November 10, 2020
Author:meruem44
Views Total:75 views
Official Page:Go to website
Last Update:November 10, 2020
License:MIT

Preview:

Elegant Pricing Table Cards In CSS

Description:

An elegant and responsive pricing table UI template for E-commerce websites and online stores. Implemented in plain HTML and CSS/CSS3.

Comes with a cool background transition effect that can be used to highlight the features of the current plan on hover.

How to use it:

1. Add pricing cards to the pricing table.

<div class="pricing-table">
  <div class="pricing-card">
    <h3 class="pricing-card-header">Pessoal</h3>
    <div class="price"><sup>$</sup>15<span>/MO</span></div>
    <ul>
      <li><strong>3</strong> Websites</li>
      <li><strong>20 GB</strong> SSD</li>
      <li><strong>1</strong> Domain Name</li>
      <li><strong>5</strong> Email</li>
      <li><strong>1x</strong> CPU & RAM</li>
    </ul>
    <a href="#" class="order-btn">Obtenha agora</a>
  </div>
  <div class="pricing-card">
    <h3 class="pricing-card-header">Professional</h3>
    <div class="price"><sup>$</sup>30<span>/MO</span></div>
    <ul>
      <li><strong>10</strong> Websites</li>
      <li><strong>50 GB</strong> SSD</li>
      <li><strong>1</strong> Domain Name</li>
      <li><strong>20</strong> Email</li>
      <li><strong>1.5x</strong> CPU & RAM</li>
    </ul>
    <a href="#" class="order-btn">Obtenha agora</a>
  </div>
  <div class="pricing-card">
    <h3 class="pricing-card-header">Premium</h3>
    <div class="price"><sup>$</sup>50<span>/MO</span></div>
    <ul>
      <li><strong>30</strong> Websites</li>
      <li><strong>150 GB</strong> SSD</li>
      <li><strong>1</strong> Domain Name</li>
      <li><strong>40</strong> Email</li>
      <li><strong>2x</strong> CPU & RAM</li>
    </ul>
    <a href="#" class="order-btn">Obtenha agora</a>
  </div>
  <div class="pricing-card">
    <h3 class="pricing-card-header">Ultimate</h3>
    <div class="price"><sup>$</sup>80<span>/MO</span></div>
    <ul>
      <li><strong>100</strong> Websites</li>
      <li><strong>500 GB</strong> SSD</li>
      <li><strong>1</strong> Domain Name</li>
      <li><strong>100</strong> Email</li>
      <li><strong>4x</strong> CPU & RAM</li>
    </ul>
    <a href="#" class="order-btn">Obtenha agora</a>
  </div>
</div>

2. The necessary CSS styles for the pricing table.

.pricing-table{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  width: min(1600px, 100%);
  margin: auto;
}

.pricing-card{
  flex: 1;
  max-width: 360px;
  background-color: #fff;
  margin: 20px 10px;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  color: #2d2d2d;
  transition: .3s linear;
}

.pricing-card-header{
  background-color: #9157c1;
  display: inline-block;
  color: #fff;
  padding: 12px 30px;
  border-radius: 0 0 20px 20px;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 600;
  transition: .4s linear;
}

.pricing-card:hover .pricing-card-header{
  box-shadow: 0 0 0 26em #9157c1;
}

.price{
  font-size: 70px;
  color: #9157c1;
  margin: 40px 0;
  transition: .2s linear;
}

.price sup, .price span{
  font-size: 22px;
  font-weight: 700;
}

.pricing-card:hover ,.pricing-card:hover .price{
  color: #fff;
}

.pricing-card li{
  font-size: 16px;
  padding: 10px 0;
  text-transform: uppercase;
}

.order-btn{
  display: inline-block;
  margin-bottom: 40px;
  margin-top: 80px;
  border: 2px solid #9157c1;
  color: #9157c1;
  padding: 18px 40px;
  border-radius: 8px;
  text-transform: uppercase;
  font-weight: 500;
  transition: .3s linear;
}

.order-btn:hover{
  background-color: #9157c1;
  color: #fff;
}

@media screen and (max-width:1100px){
  .pricing-card{
    flex: 50%;
  }
}

You Might Be Interested In:


Leave a Reply