
Подробное описание и демонстрация работы таблицы цен под номером №59 для библиотеки Bootstrap. Html и CSS код для реализации блока table price на сайте как на изображении.
Демо Таблицы цен — стиль 59
Стандарт
$
10
/month
- 50 GB Disk Space
- 50 Email Accounts
- 50 GB Monthly Bandwidth
- 10 Subdomains
- 15 Domains
Бизнес
$
20
/month
- 60 GB Disk Space
- 60 Email Accounts
- 60 GB Monthly Bandwidth
- 15 Subdomains
- 20 Domains
Премиум
$
30
/month
- 70 GB Disk Space
- 70 Email Accounts
- 70 GB Monthly Bandwidth
- 20 Subdomains
- 25 Domains
<div class="container"> <div class="row"> <div class="col-md-4 col-sm-6"> <div class="pricingTable"> <div class="pricingTable-header"> <span class="icon fa fa-globe"></span> <h3 class="title">Standard</h3> </div> <div class="price-value"> <span class="amount"> <span class="currency">$</span> 10 <span class="month">/month</span> </span> </div> <ul class="pricing-content"> <li>50 GB Disk Space</li> <li>50 Email Accounts</li> <li>50 GB Monthly Bandwidth</li> <li>10 Subdomains</li> <li>15 Domains</li> </ul> <a href="#" class="pricingTable-signup">Sign Up</a> </div> </div> <div class="col-md-4 col-sm-6"> <div class="pricingTable"> <div class="pricingTable-header"> <span class="icon fa fa-briefcase"></span> <h3 class="title">Business</h3> </div> <div class="price-value"> <span class="amount"> <span class="currency">$</span> 20 <span class="month">/month</span> </span> </div> <ul class="pricing-content"> <li>60 GB Disk Space</li> <li>60 Email Accounts</li> <li>60 GB Monthly Bandwidth</li> <li>15 Subdomains</li> <li>20 Domains</li> </ul> <a href="#" class="pricingTable-signup">Sign Up</a> </div> </div> </div> </div>css разметка для реализации блока прайсов
.demo{ background: #000; } .pricingTable{ padding: 30px 0 40px; background: #fff; text-align: center; } .pricingTable .pricingTable-header{ color: #333; } .pricingTable .icon{ display: block; font-size: 50px; } .pricingTable .title{ font-size: 22px; margin-bottom: 10px; } .pricingTable .price-value{ padding: 20px 0 14px; margin: 23px -10px 30px; background: #eee; color: #333; position: relative; transition: all 0.3s ease-in-out 0s; } .pricingTable:hover .price-value{ background: #73c32c; color: #fff; } .pricingTable .price-value:before, .pricingTable .price-value:after{ content: ""; display: block; width: 10px; height: 15px; border-width: 13px 5px 11px; border-style: solid; border-color: transparent #777 #777 transparent; position: absolute; top: -24px; left: 0; transition: all 0.3s ease-in-out 0s; } .pricingTable .price-value:after{ border-width: 11px 5px; border-color: transparent transparent #777 #777; top: -22px; left: auto; right: 0; } .pricingTable:hover .price-value:before{ border-color: transparent #4e9310 #4e9310 transparent; } .pricingTable:hover .price-value:after{ border-color: transparent transparent #4e9310 #4e9310; } .pricingTable .amount{ display: inline-block; font-size: 50px; position: relative; } .pricingTable .currency{ font-size: 25px; position: absolute; top: 13px; right: 60px; } .pricingTable .month{ font-size: 20px; position: absolute; top: 32px; right: -65px; } .pricingTable .pricing-content{ padding: 0; margin: 0; list-style: none; margin-bottom: 40px; } .pricingTable .pricing-content li{ font-size: 14px; line-height: 40px; } .pricingTable .pricingTable-signup{ display: block; padding: 10px 0; font-size: 15px; font-weight: 600; color: #858585; text-transform: uppercase; border-top: 1px solid #e0dcdc; border-bottom: 1px solid #e0dcdc; transition: all 0.5s ease 0s; } .pricingTable:hover .pricingTable-signup{ background: #73c32c; border-top: 1px solid #73c32c; border-bottom: 1px solid #73c32c; color: #fff; } @media only screen and (max-width: 990px){ .pricingTable{ margin-bottom: 30px; } }