
Подробное описание и демонстрация работы таблицы цен под номером №57 для библиотеки Bootstrap. Html и CSS код для реализации блока table price на сайте как на изображении.
Демо Таблицы цен — стиль 57
$10
/mo
Стандарт
- 50GB Disk Space
- 50 Email Accounts
- 50GB Monthly Bandwidth
- 10 Subdomains
- 15 Domains
$20
/mo
Бизнес
- 60GB Disk Space
- 60 Email Accounts
- 60GB Monthly Bandwidth
- 15 Subdomains
- 20 Domains
$30
/mo
Премиум
- 70GB Disk Space
- 70 Email Accounts
- 70GB 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="price-value">$10</span> <span class="month">/mo</span> <h3 class="title">Standard</h3> </div> <ul class="pricing-content"> <li>50GB Disk Space</li> <li>50 Email Accounts</li> <li>50GB 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="price-value">$20</span> <span class="month">/mo</span> <h3 class="title">Business</h3> </div> <ul class="pricing-content"> <li>60GB Disk Space</li> <li>60 Email Accounts</li> <li>60GB 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 разметка для реализации блока прайсов
.pricingTable{ padding: 30px 0; margin: 30px 0; background: #f4f4f4; text-align: center; position: relative; transition: all 0.3s ease-out 0s; } .pricingTable:before, .pricingTable:after{ content: ""; width: 72%; height: 52px; background: #f4f4f4; margin: 0 auto; position: absolute; top: -32px; left: 0; right: 0; transform: rotate(-3deg) skew(-3deg); transition: all 0.3s ease-out 0s; } .pricingTable:after{ top: auto; bottom: -32px } .pricingTable:hover, .pricingTable:hover:before, .pricingTable:hover:after{ background: #6bbccb; } .pricingTable .pricingTable-header{ border-bottom: 1px solid #e6e5e5; } .pricingTable .price-value{ padding: 8px 0; font-size: 45px; font-weight: bold; line-height: 45px; color: #161616; } .pricingTable:hover .price-value{ color: #fff; } .pricingTable .month{ font-size: 15px; color: #727272; line-height: 24px; } .pricingTable .title{ font-size: 24px; color: #272727; text-transform: uppercase; } .pricingTable:hover .title{ color: #fff; } .pricingTable .pricing-content{ padding: 0 15%; margin: 0 0 30px 0; list-style: none; } .pricingTable .pricing-content li{ display: block; padding: 20px 0; border-bottom: 1px solid #e6e5e5; font-size: 15px; color: #272727; } .pricingTable:hover .pricing-content li{ color: #fff; } .pricingTable .pricingTable-signup{ display: inline-block; padding: 2px 20px; background: #272727; font-size: 14px; color: #fff; line-height: 30px; text-transform: uppercase; border-radius: 3px; overflow: hidden; position: relative; z-index: 1; transition: all 0.3s ease-out 0s; } .pricingTable .pricingTable-signup:hover{ color: #272727; } .pricingTable .pricingTable-signup:before{ content: ""; background: #6bbccb; border-radius: 50%; padding: 18%; position: absolute; top: 50%; left: 50%; z-index: -1; transform: translate3d(-50%, -50%, 0) scale(0); transition: transform .3s cubic-bezier(1, 0.15, 0.34, 1.03); } .pricingTable-signup:hover:before{ transform: translate3d(-50%, -50%, 0) scale(2.5); } @media only screen and (max-width: 990px){ .pricingTable{ margin-bottom: 50px; } } @media only screen and (max-width: 767px){ .pricingTable{ margin-bottom: 80px; } }