
Подробное описание и демонстрация работы таблицы цен под номером №25 для библиотеки Bootstrap. Html и CSS код для реализации блока table price на сайте как на изображении.
Демо Таблицы цен — стиль 25
Стандарт
- 50GB Disk Space
- 50 Email Accounts
- 50GB Monthly Bandwidth
- 10 subdomains
- 15 Domains
1000
month
Бизнес
- 70GB Disk Space
- 70 Email Accounts
- 70GB Monthly Bandwidth
- 15 subdomains
- 20 Domains
2000
month
Премиум
- 80GB Disk Space
- 80 Email Accounts
- 80GB Monthly Bandwidth
- 20 subdomains
- 25 Domains
3000
month
<div class="container"> <div class="row"> <div class="col-md-4 col-sm-6"> <div class="pricingTable"> <div class="pricingTable-header"> <span class="heading"> Standard </span> </div> <div class="pricingContent"> <ul> <li><b>50GB</b> Disk Space</li> <li><b>50</b> Email Accounts</li> <li><b>50GB</b> Monthly Bandwidth</li> <li><b>10</b> subdomains</li> <li><b>15</b> Domains</li> </ul> </div><!-- / CONTENT BOX--> <div class="pricing-plans"> <span class="price-value"><i class="fa fa-usd"></i>10<span>00</span> </span> <span class="month">month</span> </div> <div class="pricingTable-sign-up"> <a href="#" class="btn btn-block btn-default">buy now</a> </div> </div> </div> </div> </div>css разметка для реализации блока прайсов
.pricingTable{ text-align: center; color: #263248; background: #f1f0ff; transition: all 0.4s ease 0s; } .pricingTable:hover{ background:#a297cb; color:#fff; margin-top: -15px; box-shadow:0 0 20px #808080; } .pricingTable .pricingTable-header{ padding: 20px 10px; } .pricingTable .heading{ display: block; font-size: 21px; font-weight: 900; text-transform: uppercase; color: #38e0db; transition: all 0.4s ease 0s; } .pricingTable:hover .heading{ color:#fff; } .pricingTable .heading:before{ content: ""; width: 30%; display: block; margin: 15px auto; border-top: 2px solid #85838d; transition: all 0.4s ease 0s; } .pricingTable:hover .heading:before{ border-top-color: #fff; } .pricingTable .pricingContent ul{ padding: 0; margin-bottom: 0; list-style: none; } .pricingTable .pricingContent ul li{ padding: 25px 0; width: 80%; margin: 0 auto; border-bottom:1px solid #d3d3d3; text-transform: uppercase; letter-spacing: 1px; } .pricingTable .pricing-plans{ padding: 40px; color: #263248; position: relative; transition: all 0.4s ease 0s; } .pricingTable:hover .pricing-plans{ color:#fff; } .pricingTable .price-value{ display: inline-block; font-size: 50px; font-weight: 800; } .pricingTable .price-value i{ margin-right: 10px; } .pricingTable .price-value span{ font-size: 25px; margin-left: 10px; position: absolute; top: 47px; } .pricingTable .month{ margin-left: 10px; position: absolute; bottom: 57px; font-size:10px; text-transform: uppercase; } .pricingTable .pricingTable-sign-up{ position: relative; transition: all 0.5s ease 0s; } .pricingTable:hover .pricingTable-sign-up{ padding: 30px 0; } .pricingTable .btn-block{ width: 60%; padding: 14px 0; border: 0 none; color: #fff; font-size: 25px; background: #50c9d6; text-transform: uppercase; position:absolute; top:-50px; left: 20%; opacity: 0; transition: all 0.5s ease 0s; } .pricingTable:hover .btn-block{ top:30px; opacity: 1; } .pricingTable.active{ background:#a297cb; box-shadow:0 0 20px #808080; color: #fff; margin-top: -15px; } .pricingTable.active .heading:before{ border-top-color: #fff; } .pricingTable.active .heading, .pricingTable.active .price-value, .pricingTable.active .month{ color: #fff; } .pricingTable.active .pricingTable-sign-up{ padding: 30px 0; } .pricingTable.active .btn-block{ opacity: 1; top:30px; } @media screen and (max-width:990px){ .pricingTable{ margin-bottom: 50px; } } @media screen and (max-width:767px){ .pricingTable.active{ margin-top: 0; } }