Pricing Card Design
Home
Snippets
Pricing Card Design
HTML
CSS
JS
<div class="container"> <div class="card card1"> <h3>BASIC</h3> <h2>Free</h2> <h4>Free</h4> <hr> <p>10 templates</p> <p>Default presets</p> <a href="#">Buy now</a> </div> </div>
* { margin: 0; padding: 0; } html { font-family: Avenir, sans-serif; } body{ height: 100vh; display: flex; align-items: center; justify-content: center; } .card { width: 250px; border-radius: 10px; padding: 20px 20px 40px 20px; border: 0; } .card1 { background: linear-gradient(to bottom right, #FC56F6, #A356FD); box-shadow: 3px 15px 30px rgba(171, 86, 252, 0.75); } .card h3 { color: rgba(255, 255, 255, 0.3); font-size: 40px; font-weight: 900; letter-spacing: 0px; } .card h4 { color: white; font-size: 40px; } .card h2 { color: rgba(255, 255, 255, 0.15); font-size: 100px; font-weight: 900; position: absolute; margin-left: -6px; pointer-events: none; } .card hr { border-width: 1px; border-color: rgba(255, 255, 255, 0.15); margin-top: 20px; } .card p:first-of-type { margin-top: 10px; } .card p { color: white; font-size: 24px; } .card p:nth-of-type(2) { margin-bottom: 35px; } .card a { color: white; font-size: 20px; font-weight: bold; text-decoration: none; padding: 12px 30px 11px 30px; background-color: rgba(255, 255, 255, 0.3); border-radius: 6px; transition: background-color 0.5s; } .card a:hover { background-color: rgba(255, 255, 255, 0.5); }
// javascript
Ad #1
Ad #2
Scroll to Top