How To Create a Bootstrap Responsive Pricing Tables
Authors: CodeToday | Bootstrap | Views: 869 | Posted: 03 AM: 09/19/2017
Creating a price list is very important when you want to display a price list with options when presenting a product. However, to create a nice price list and run it on all devices requires you to know in depth. CSS
Today I will guide you to use responsive table bootstrap and css to create a Responsive Pricing Tables
Bootstrap Library
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
CSS
<style> * { box-sizing: border-box; } .price { list-style-type: none; border: 1px solid #eee; margin: 0; padding: 0; -webkit-transition: 0.3s; transition: 0.3s; } .price:hover { box-shadow: 0 8px 12px 0 rgba(0,0,0,0.2) } .price .header { background-color: #111; color: white; font-size: 25px; } .price li { border-bottom: 1px solid #eee; padding: 20px; text-align: center; } .price .grey { background-color: #eee; font-size: 20px; } .button { background-color: #4CAF50; border: none; color: white; padding: 10px 25px; text-align: center; text-decoration: none; font-size: 18px; } </style>
HTML
<div class="row"> <div class="col-md-4 col-xs-12"> <ul class="price"> <li class="header" style="background-color:#31B0D5">Basic</li> <li class="grey">$ 20 / Month</li> <li>Unlimited - 24/7 Support</li> <li>Paypal, Perfect Money, Bitcoin</li> <li class="grey"><a href="register.php" class="button">Sign Up</a></li> </ul> </div> <div class="col-md-4 col-xs-12"> <ul class="price"> <li class="header" style="background-color:#FFCC00">Standard</li> <li class="grey">$ 50 / 6 Month</li> <li>Unlimited - 24/7 Support</li> <li>Paypal, Perfect Money, Bitcoin</li> <li class="grey"><a href="register.php" class="button">Sign Up</a></li> </ul> </div> <div class="col-md-4 col-xs-12"> <ul class="price"> <li class="header" style="background-color:#E9C341">Premium</li> <li class="grey">$ 100 / Year</li> <li>Unlimited - 24/7 Support</li> <li>Paypal, Perfect Money, Bitcoin</li> <li class="grey"><a href="register.php" class="button">Sign Up</a></li> </ul> </div> </div>
After completing the above steps, you will get results as shown below:
