Last active
December 19, 2015 21:59
-
-
Save maneja81/6024245 to your computer and use it in GitHub Desktop.
A CodePen by Mohit Aneja. Pure CSS Pricing Table - Here's the code for pure css pricing table, I've created for one of my client's project.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="pricing-table clearfix"> | |
<ul class="highlight-low"> | |
<li class="heading">Free</li> | |
<li class="price">$0/mo</li> | |
<li class="feature"><span>Some feature</span></li> | |
<li class="feature"><span>Some feature</span></li> | |
<li class="feature"><span>Some feature</span></li> | |
<li class="feature"><span>Some feature</span></li> | |
<li class="feature"><span>Some feature</span></li> | |
<li class="call-to-action">Buy Now</li> | |
</ul> | |
<ul class="highlight-high"> | |
<li class="heading">Premium</li> | |
<li class="price">$0/mo</li> | |
<li class="feature"><span>Some feature</span></li> | |
<li class="feature"><span>Some feature</span></li> | |
<li class="feature"><span>Some feature</span></li> | |
<li class="feature"><span>Some feature</span></li> | |
<li class="feature"><span>Some feature</span></li> | |
<li class="call-to-action">Buy Now</li> | |
</ul> | |
<ul class="highlight-medium"> | |
<li class="heading">Free</li> | |
<li class="price">$0/mo</li> | |
<li class="feature"><span>Some feature</span></li> | |
<li class="feature"><span>Some feature</span></li> | |
<li class="feature"><span>Some feature</span></li> | |
<li class="feature"><span>Some feature</span></li> | |
<li class="feature"><span>Some feature</span></li> | |
<li class="call-to-action">Buy Now</li> | |
</ul> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.pricing-table { | |
width: 700px; | |
margin: 30px auto 30px auto; | |
font-family:"Arial"; | |
} | |
.pricing-table ul { | |
width: 33%; | |
text-align: center; | |
background: #fff; | |
float: left; | |
margin: 0px; | |
padding: 0px; | |
list-style: none; | |
-webkit-border-radius: 5px; | |
-moz-border-radius: 5px; | |
border-radius: 5px; | |
-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | |
-moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | |
-ms-box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | |
-o-box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | |
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | |
z-index: 99; | |
position: relative; | |
} | |
.pricing-table ul.highlight-low { | |
margin-right: -5px; | |
} | |
.pricing-table ul.highlight-low .heading { | |
font-size: 22px; | |
padding: 15px 0; | |
border: 5px solid #cfcfcf; | |
-webkit-border-radius: 5px 5px 0 0; | |
-moz-border-radius: 5px 5px 0 0; | |
border-radius: 5px 5px 0 0; | |
background-color: #e3e3e3; | |
background-image: -moz-linear-gradient(top, #f0f0f0, #cfcfcf); | |
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f0f0f0), to(#cfcfcf)); | |
background-image: -webkit-linear-gradient(top, #f0f0f0, #cfcfcf); | |
background-image: -o-linear-gradient(top, #f0f0f0, #cfcfcf); | |
background-image: linear-gradient(to bottom, #f0f0f0, #cfcfcf); | |
background-repeat: repeat-x; | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0f0f0', endColorstr='#ffcfcfcf', GradientType=0); | |
} | |
.pricing-table ul.highlight-low .price { | |
background: #dfe9f0; | |
border-left: 5px solid #cfcfcf; | |
border-right: 5px solid #cfcfcf; | |
font-size: 20px; | |
padding: 15px 0; | |
} | |
.pricing-table ul.highlight-low .feature { | |
border-left: 5px solid #cfcfcf; | |
border-right: 5px solid #cfcfcf; | |
} | |
.pricing-table ul.highlight-low .feature span { | |
padding: 10px 0; | |
border-bottom: 1px dashed rgba(0, 0, 0, 0.2); | |
margin: 0 10px; | |
display: block; | |
font-size: 90%; | |
} | |
.pricing-table ul.highlight-low .feature:nth-last-child(2) span { | |
border-bottom: 0px !important; | |
} | |
.pricing-table ul.highlight-low .call-to-action { | |
background: #f0f0f0; | |
-webkit-border-radius: 0 0 5px 5px; | |
-moz-border-radius: 0 0 5px 5px; | |
border-radius: 0 0 5px 5px; | |
border: 5px solid #cfcfcf; | |
border-top: 0px; | |
padding: 15px 0; | |
font-size: 22px; | |
} | |
.pricing-table ul.highlight-high { | |
z-index: 100; | |
-webkit-box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); | |
-moz-box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); | |
-ms-box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); | |
-o-box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); | |
box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); | |
margin-top: -12px; | |
} | |
.pricing-table ul.highlight-high .heading { | |
font-size: 22px; | |
padding: 24px 0; | |
border: 5px solid #21507d; | |
-webkit-border-radius: 5px 5px 0 0; | |
-moz-border-radius: 5px 5px 0 0; | |
border-radius: 5px 5px 0 0; | |
background-color: #2c5d8e; | |
background-image: -moz-linear-gradient(top, #336699, #21507d); | |
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#336699), to(#21507d)); | |
background-image: -webkit-linear-gradient(top, #336699, #21507d); | |
background-image: -o-linear-gradient(top, #336699, #21507d); | |
background-image: linear-gradient(to bottom, #336699, #21507d); | |
background-repeat: repeat-x; | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff336699', endColorstr='#ff21507d', GradientType=0); | |
color: #fff; | |
} | |
.pricing-table ul.highlight-high .price { | |
background: #dfe9f0; | |
border-left: 5px solid #21507d; | |
border-right: 5px solid #21507d; | |
font-size: 20px; | |
padding: 15px 0; | |
} | |
.pricing-table ul.highlight-high .feature { | |
border-left: 5px solid #21507d; | |
border-right: 5px solid #21507d; | |
} | |
.pricing-table ul.highlight-high .feature span { | |
padding: 10px 0; | |
border-bottom: 1px dashed rgba(0, 0, 0, 0.2); | |
margin: 0 10px; | |
display: block; | |
font-size: 90%; | |
} | |
.pricing-table ul.highlight-high .feature:nth-last-child(2) span { | |
border-bottom: 0px !important; | |
} | |
.pricing-table ul.highlight-high .call-to-action { | |
background: #f0f0f0; | |
-webkit-border-radius: 0 0 5px 5px; | |
-moz-border-radius: 0 0 5px 5px; | |
border-radius: 0 0 5px 5px; | |
border: 5px solid #21507d; | |
border-top: 0px; | |
padding: 24px 0; | |
font-size: 22px; | |
} | |
.pricing-table ul.highlight-medium { | |
margin-left: -5px; | |
} | |
.pricing-table ul.highlight-medium .heading { | |
font-size: 22px; | |
padding: 15px 0; | |
border: 5px solid #589f0c; | |
-webkit-border-radius: 5px 5px 0 0; | |
-moz-border-radius: 5px 5px 0 0; | |
border-radius: 5px 5px 0 0; | |
background-color: #6abc12; | |
background-image: -moz-linear-gradient(top, #76cf16, #589f0c); | |
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#76cf16), to(#589f0c)); | |
background-image: -webkit-linear-gradient(top, #76cf16, #589f0c); | |
background-image: -o-linear-gradient(top, #76cf16, #589f0c); | |
background-image: linear-gradient(to bottom, #76cf16, #589f0c); | |
background-repeat: repeat-x; | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff76cf16', endColorstr='#ff589f0c', GradientType=0); | |
color: #fff; | |
} | |
.pricing-table ul.highlight-medium .price { | |
background: #dfe9f0; | |
border-left: 5px solid #589f0c; | |
border-right: 5px solid #589f0c; | |
font-size: 20px; | |
padding: 15px 0; | |
} | |
.pricing-table ul.highlight-medium .feature { | |
border-left: 5px solid #589f0c; | |
border-right: 5px solid #589f0c; | |
} | |
.pricing-table ul.highlight-medium .feature span { | |
padding: 10px 0; | |
border-bottom: 1px dashed rgba(0, 0, 0, 0.2); | |
margin: 0 10px; | |
display: block; | |
font-size: 90%; | |
} | |
.pricing-table ul.highlight-medium .feature:nth-last-child(2) span { | |
border-bottom: 0px !important; | |
} | |
.pricing-table ul.highlight-medium .call-to-action { | |
background: #f0f0f0; | |
-webkit-border-radius: 0 0 5px 5px; | |
-moz-border-radius: 0 0 5px 5px; | |
border-radius: 0 0 5px 5px; | |
border: 5px solid #589f0c; | |
border-top: 0px; | |
padding: 15px 0; | |
font-size: 22px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment