pricing table

In this example below you will see how to do a pricing table with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by piyush0966, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright piyush0966 ©
  • HTML
  • CSS
  • JavaScript
    <section id = 'pricing-table'>
  <h2 class = 'text-center'>Pricing</h2>
  <div class = 'table-container'>
   
    <table class = 'table table-bordered '>
       <div class = "card">
      <thead>
        <tr>
          <th class = 'plan-feature'></th>
          <th class = 'free-plan'>
            FREE

          </th>
          <th class = 'premium-plan'>PREMIUM
          </th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>Check in/out module </td>
          <td><i class="fa fa-check"></i></td>
          <td><i class="fa fa-check"></i></td>
        </tr>
        <tr>
          <td>Referral module</td>
          <td><i class="fa fa-check"></i></td>
          <td><i class="fa fa-check"></i></td>
        </tr>
        <tr>
          <td>Feedback module</td>
          <td><i class="fa fa-check"></i></td>
          <td><i class="fa fa-check"></i></td>
        </tr>
        <tr>
          <td>Trackable SMS campaign</td>
          <td><i class="fa fa-check"></i></td>
          <td><i class="fa fa-check"></i></td>
        </tr>
        <tr>
          <td>Engagement consultancy</td>
          <td><i class="fa fa-times"></i></td>
          <td><i class="fa fa-check"></i></td>
        </tr>
        <tr>
          <td>Privilege support</td>
          <td><i class="fa fa-times"></i></td>
          <td><i class="fa fa-check"></i></td>
        </tr>
        <tr>
          <td>Unique sender ID</td>
          <td><i class="fa fa-times"></i></td>
          <td><i class="fa fa-check"></i></td>
        </tr>
      </tbody>
      </div>
    </table>
    
  </div>
</section>

/*Downloaded from https://www.codeseek.co/piyush0966/pricing-table-LQePoj */
    #pricing-table {
/*   background:#eee; */
}
.table {
  width:auto;
  margin:0px auto;
}
#pricing-table .fa-check {
  color:#0fd90f;
}

#pricing-table .fa-times {
  color:red;
}

#pricing-table {
  max-width:100%;
}

.text-center {
  text-align:center;
}
.table-container {
/*   background:black; */
  color:black;
  padding:10px;
}

 tr td:nth-child(2) {
  background:#fcfcfc;
   text-align:center;
   width:120px;

   
}
tbody tr {
  height:50px;
}
tbody tr td {
/*   line-height:40px !important; */
}

 tr td:nth-child(3) {
  background:#fcfcfc;
   text-align:center;
    width:120px;
}

.free-plan {
  height:90px;
  color:black ;
  background:#f9f9f9;
  border-top:4px solid blue !important;
}

.premium-plan {
  height:70px !important;
  color:black ;
  background:#f9f9f9;
  border-top:2px solid #eee !important;
}

.plan-feature {
 border:none !important;
  width:250px;
}
tbody tr td {
  font-size:14px;
}
.table-container .table-bordered {
  border:none;
}

tr td:nth-child(1) {
  border-left:none !important;
}

thead tr th {
  font-size:16px;
  text-align:center;
}


/*Downloaded from https://www.codeseek.co/piyush0966/pricing-table-LQePoj */
    

Comments