Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                 <header>
        <div class="container header-content">
            <a href="#" class="logo">WPDean</a>
            <nav>
                <ul>
                    <li><a href="#">Features</a></li>
                    <li><a href="#">Solutions</a></li>
                    <li><a href="#">Pricing</a></li>
                    <li><a href="#">Resources</a></li>
                </ul>
            </nav>
            <button class="cta-button">Start Free Trial</button>
        </div>
    </header>

    <main>
        <section class="hero container">
            <h1>Simple pricing plans for <span>every business</span></h1>
            <p>Transparent and scalable pricing options designed to grow with your needs. No hidden fees, no surprises.</p>
            
            <div class="toggle">
                <button class="active">Monthly</button>
                <button>Annually</button>
            </div>
        </section>

        <section class="pricing-cards container">
            <div class="card starter">
                <div class="card-icon">
                    <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                        <path d="M12 16L7 11L8.4 9.55L12 13.15L19.6 5.55L21 7L12 16Z" fill="currentColor"/>
                    </svg>
                </div>
                <h2>Starter</h2>
                <p class="subtitle">Perfect for individuals and small teams</p>
                <div class="price">$0 <span>/ month</span></div>
                
                <div class="features">
                    <div class="feature">
                        <svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                            <path d="M12 16L7 11L8.4 9.55L12 13.15L19.6 5.55L21 7L12 16Z" fill="#5b68e4"/>
                        </svg>
                        <span>Basic features with usage limits</span>
                    </div>
                    <div class="feature">
                        <svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                            <path d="M12 16L7 11L8.4 9.55L12 13.15L19.6 5.55L21 7L12 16Z" fill="#5b68e4"/>
                        </svg>
                        <span>Up to 3 projects</span>
                    </div>
                    <div class="feature">
                        <svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                            <path d="M12 16L7 11L8.4 9.55L12 13.15L19.6 5.55L21 7L12 16Z" fill="#5b68e4"/>
                        </svg>
                        <span>Basic analytics and reporting</span>
                    </div>
                    <div class="feature">
                        <svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                            <path d="M12 16L7 11L8.4 9.55L12 13.15L19.6 5.55L21 7L12 16Z" fill="#5b68e4"/>
                        </svg>
                        <span>Email support</span>
                    </div>
                </div>
                
                <button>Get Started</button>
            </div>
            
            <div class="card pro popular">
                <div class="popular-tag">Most Popular</div>
                <div class="card-icon">
                    <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                        <path d="M12 2L15.09 8.26L22 9.27L17 14.14L18.18 21.02L12 17.77L5.82 21.02L7 14.14L2 9.27L8.91 8.26L12 2Z" fill="currentColor"/>
                    </svg>
                </div>
                <h2>Professional</h2>
                <p class="subtitle">Ideal for growing businesses</p>
                <div class="price">$49 <span>/ month</span></div>
                
                <div class="features">
                    <div class="feature">
                        <svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                            <path d="M12 16L7 11L8.4 9.55L12 13.15L19.6 5.55L21 7L12 16Z" fill="#ffaa33"/>
                        </svg>
                        <span>All Starter features, plus:</span>
                    </div>
                    <div class="feature">
                        <svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                            <path d="M12 16L7 11L8.4 9.55L12 13.15L19.6 5.55L21 7L12 16Z" fill="#ffaa33"/>
                        </svg>
                        <span>Advanced analytics with insights</span>
                    </div>
                    <div class="feature">
                        <svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                            <path d="M12 16L7 11L8.4 9.55L12 13.15L19.6 5.55L21 7L12 16Z" fill="#ffaa33"/>
                        </svg>
                        <span>Unlimited projects and collaborators</span>
                    </div>
                    <div class="feature">
                        <svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                            <path d="M12 16L7 11L8.4 9.55L12 13.15L19.6 5.55L21 7L12 16Z" fill="#ffaa33"/>
                        </svg>
                        <span>Priority support and training</span>
                    </div>
                    <div class="feature">
                        <svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                            <path d="M12 16L7 11L8.4 9.55L12 13.15L19.6 5.55L21 7L12 16Z" fill="#ffaa33"/>
                        </svg>
                        <span>Automation tools</span>
                    </div>
                </div>
                
                <button>Get Started</button>
            </div>
            
            <div class="card enterprise">
                <div class="card-icon">
                    <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                        <path d="M12 8L15 13.2L21 14.1L16.5 18.2L17.6 24L12 21.3L6.4 24L7.5 18.2L3 14.1L9 13.2L12 8Z" fill="currentColor"/>
                    </svg>
                </div>
                <h2>Enterprise</h2>
                <p class="subtitle">Custom solutions for larger teams</p>
                <div class="price">$89 <span>/ month</span></div>
                
                <div class="features">
                    <div class="feature">
                        <svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                            <path d="M12 16L7 11L8.4 9.55L12 13.15L19.6 5.55L21 7L12 16Z" fill="#33aaff"/>
                        </svg>
                        <span>All Professional features, plus:</span>
                    </div>
                    <div class="feature">
                        <svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                            <path d="M12 16L7 11L8.4 9.55L12 13.15L19.6 5.55L21 7L12 16Z" fill="#33aaff"/>
                        </svg>
                        <span>No limits on usage or data</span>
                    </div>
                    <div class="feature">
                        <svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                            <path d="M12 16L7 11L8.4 9.55L12 13.15L19.6 5.55L21 7L12 16Z" fill="#33aaff"/>
                        </svg>
                        <span>Dedicated account manager</span>
                    </div>
                    <div class="feature">
                        <svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                            <path d="M12 16L7 11L8.4 9.55L12 13.15L19.6 5.55L21 7L12 16Z" fill="#33aaff"/>
                        </svg>
                        <span>Advanced security features</span>
                    </div>
                    <div class="feature">
                        <svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                            <path d="M12 16L7 11L8.4 9.55L12 13.15L19.6 5.55L21 7L12 16Z" fill="#33aaff"/>
                        </svg>
                        <span>Custom integration options</span>
                    </div>
                </div>
                
                <button>Contact Sales</button>
            </div>
        </section>
    </main>
              
            
!

CSS

              
                  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: #f5f7fa;
            color: #333;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Header Styles */
        header {
            padding: 20px 0;
            background-color: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 24px;
            font-weight: 700;
            color: #5b68e4;
            text-decoration: none;
        }

        nav ul {
            display: flex;
            list-style: none;
        }

        nav ul li {
            margin-left: 30px;
        }

        nav ul li a {
            text-decoration: none;
            color: #555;
            font-weight: 500;
            transition: color 0.3s;
        }

        nav ul li a:hover {
            color: #5b68e4;
        }

        .cta-button {
            background-color: #5b68e4;
            color: white;
            padding: 10px 20px;
            border-radius: 25px;
            font-weight: 600;
            border: none;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .cta-button:hover {
            background-color: #4850c8;
        }

        /* Hero Section */
        .hero {
            padding: 80px 0 40px;
            text-align: center;
        }

        .hero h1 {
            font-size: 42px;
            font-weight: 700;
            margin-bottom: 15px;
        }

        .hero h1 span {
            color: #5b68e4;
            font-weight: 400;
            font-style: italic;
        }

        .hero p {
            font-size: 18px;
            color: #666;
            max-width: 600px;
            margin: 0 auto 30px;
            line-height: 1.6;
        }

        .toggle {
            display: inline-flex;
            background-color: #f0f2fa;
            border-radius: 25px;
            padding: 5px;
            margin-bottom: 40px;
        }

        .toggle button {
            padding: 8px 20px;
            border: none;
            background: none;
            border-radius: 20px;
            cursor: pointer;
            font-weight: 500;
        }

        .toggle button.active {
            background-color: #5b68e4;
            color: white;
        }

        /* Pricing Cards */
        .pricing-cards {
            display: flex;
            justify-content: center;
            gap: 30px;
            flex-wrap: wrap;
            margin-bottom: 80px;
        }

        .card {
            background-color: white;
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
            flex: 1;
            min-width: 300px;
            max-width: 350px;
            position: relative;
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }

        .card.popular {
            border-top: 4px solid #ffcc5c;
        }

        .popular-tag {
            position: absolute;
            top: -12px;
            right: 30px;
            background-color: #ffcc5c;
            color: #333;
            font-size: 12px;
            font-weight: 600;
            padding: 5px 15px;
            border-radius: 20px;
        }

        .card-icon {
            width: 50px;
            height: 50px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
        }

        .starter .card-icon {
            background-color: #e6eeff;
            color: #5b68e4;
        }

        .pro .card-icon {
            background-color: #fff5e6;
            color: #ffaa33;
        }

        .enterprise .card-icon {
            background-color: #e6f9ff;
            color: #33aaff;
        }

        .card h2 {
            font-size: 22px;
            margin-bottom: 10px;
        }

        .card .subtitle {
            color: #666;
            margin-bottom: 25px;
            font-size: 14px;
        }

        .price {
            font-size: 38px;
            font-weight: 700;
            margin-bottom: 30px;
        }

        .price span {
            font-size: 16px;
            color: #888;
            font-weight: 400;
        }

        .features {
            margin-bottom: 30px;
        }

        .feature {
            display: flex;
            align-items: flex-start;
            margin-bottom: 15px;
            font-size: 14px;
        }

        .feature svg {
            flex-shrink: 0;
            margin-right: 10px;
            margin-top: 3px;
        }

        .card button {
            width: 100%;
            padding: 12px 0;
            border-radius: 6px;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .starter button {
            background-color: #f0f2fa;
            color: #5b68e4;
            border: 1px solid #e0e4f5;
        }

        .starter button:hover {
            background-color: #e6eaff;
        }

        .pro button {
            background-color: #333;
            color: white;
            border: none;
        }

        .pro button:hover {
            background-color: #222;
        }

        .enterprise button {
            background-color: white;
            color: #5b68e4;
            border: 1px solid #5b68e4;
        }

        .enterprise button:hover {
            background-color: #f0f2fa;
        }
              
            
!

JS

              
                
              
            
!
999px

Console