Pricing Table CSS: Simple Tricks for a Better Design.

The Pricing Table in your image follows a dark theme with three structured columns, each having a header, price section, features list, and a call-to-action button. Below is the HTML and CSS to recreate this responsive pricing table.

Create index.html file and copy code and paste code our layout.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Dark Theme Pricing Table By Mycodingtutorial</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>

    <section class="pricing">
        <div class="pricing-table">
            
            <!-- Basic Plan -->
            <div class="pricing-card">
                <div class="header basic">
                    <h3>Basic</h3>
                    <p>Website</p>
                </div>
                <div class="price-section basic">
                    <h2>$250</h2>
                </div>
                <p class="description">Simple website made in the world's most popular CMS system, WordPress.</p>
                <ul>
                    <li>✔ Website in WordPress</li>
                    <li>✔ 3 sub pages</li>
                    <li>✔ Theme customized</li>
                    <li>✔ Help and guidance</li>
                    <li>✔ System introduction</li>
                    <li>✔ 2 weeks free support</li>
                </ul>
                <button class="btn basic">Buy Now</button>
            </div>

            <!-- Business Plan -->
            <div class="pricing-card">
                <div class="header business">
                    <h3>Business</h3>
                    <p>Website</p>
                    <span class="ribbon">Popular</span>
                </div>
                <div class="price-section business">
                    <h2>$400</h2>
                </div>
                <p class="description">Advanced website made in the world's most popular CMS system, WordPress.</p>
                <ul>
                    <li>✔ Website in WordPress</li>
                    <li>✔ 3-5 sub pages</li>
                    <li>✔ Theme customized</li>
                    <li>✔ Help and guidance</li>
                    <li>✔ System introduction</li>
                    <li>✔ 1 month free support</li>
                </ul>
                <button class="btn business">Buy Now</button>
            </div>

            <!-- Webshop Plan -->
            <div class="pricing-card">
                <div class="header webshop">
                    <h3>Gold</h3>
                    <p>Website</p>
                </div>
                <div class="price-section webshop">
                    <h2>$896</h2>
                </div>
                <p class="description">Your very own webshop made in the world's most popular CMS system, WordPress.</p>
                <ul>
                    <li>✔ Webshop in WordPress</li>
                    <li>✔ 3-5 sub pages</li>
                    <li>✔ Theme customized</li>
                    <li>✔ Help and guidance</li>
                    <li>✔ System introduction</li>
                    <li>✔ 1 month free support</li>
                </ul>
                <button class="btn webshop">Buy Now</button>
            </div>

        </div>
    </section>

</body>
</html>

You will also like this post

  1. Designing Stunning Team Member Card with HTML & CSS
  2. Responsive Service Card Design HTML & CSS
  3. Responsive Service Card Design using HTML & CSS
  4. Responsive Card Design With Hover Effects Using HTML & CSS

Create style.css file and copy code and paste code our layout.

  /* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #121212;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Pricing Section */
.pricing {
    width: 90%;
    max-width: 1100px;
    text-align: center;
}

.pricing-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Pricing Card */
.pricing-card {
    background: #1f1f1f;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Header */
.header {
    background: #333;
    padding: 20px;
    border-radius: 10px 10px 0 0;
}

.header h3 {
    font-size: 25px;
}

.header p {
    font-size: 16px;
    color: #f5f5f5;
    font-weight: 400;
    margin-top: 5px;
}

/* Pricing */
.price-section {
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
}

/* Color Themes */
.basic { background: #4db2ec; }
.business { background: #4db2ec; }
.webshop { background: #4db2ec; }

.basic .price-section { background: #4db2ec; }
.business .price-section { background: #4db2ec; }
.webshop .price-section { background: #4db2ec; }

/* Description */
.description {
    font-size: 14px;
    padding: 15px;
    color: #bbb;
}

/* Features List */
ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

ul li {
    margin: 10px 0;
    font-size: 16px;
    padding-bottom: 10px;
}


/* Button */
.btn {
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    width: 100%;
    color: white;
}

.basic .btn { background: #4db2ec; }
.business .btn { background: #4db2ec; }
.webshop .btn { background: #4db2ec; }

.btn:hover {
    background-color: #c4364e;
}

/* Ribbon */
.ribbon {
    position: absolute;
    top: 10px;
    right: -10px;
    background: red;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-table {
        grid-template-columns: 1fr;
    }
}

Key Features

1.Dark Theme: Uses a black & grey background for a professional look.
2.Price Section: The price has a different shade for better contrast.
3.Ribbon Tag: The “Popular” ribbon highlights the Business Plan.
4.Fully Responsive: On smaller screens, it switches to a single-column layout.

Pricing Table CSS: Simple Tricks for a Better Design.

How to Create Mobile-Friendly Team Member Cards

Pricing Table CSS: Simple Tricks for a Better Design.

Simple HTML for a Great Card Design

Leave a comment

Your email address will not be published. Required fields are marked *