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 class="main-header">
        <div class="brand-name">
            <a href="">EasyHost</a>
        </div>
        <nav class="main-nav">
            <ul class="main-nav-items">
                <li class="main-nav-item"><a href="packages/index.html">Packages</a></li>
                <li class="main-nav-item"><a href="customers/index.html">Customers</a></li>
                <li class="main-nav-item must-do"><a href="hosting/index.html">Start Hosting</a></li>
            </ul>
        </nav>
    </header>

    <main>
        <div class="plan-title">
            <h2>Choose Your Plan</h2>
        </div>
        <div class="plans">
            <article class="plan">
                <h1 class="plan-name">FREE</h1>
                <h2 class="plan-price">$0/month</h2>
                <h3>For hobby projects or small teams.</h3>
                <ul class="plan-features">
                    <li class="plan-feature">1 Workspace</li>
                    <li class="plan-feature">Unlimited Traffic</li>
                    <li class="plan-feature">10GB Storage</li>
                    <li class="plan-feature">Basic Support</li>
                </ul>
                <div>
                    <button class="button">CHOOSE PLAN</button>
                </div>
            </article>
            <article class="plan highlighted-plan">
                <h1 class="plan-name highlighted-plan-name">RECOMMENDED</h1>
                <h1>PLUS</h1>
                <h2 class="plan-price highlighted-price">$29/month</h2>
                <h3>For ambitious projects.</h3>
                <ul class="plan-features">
                    <li class="plan-feature">5 Workspaces</li>
                    <li class="plan-feature">Unlimited Traffic</li>
                    <li class="plan-feature">100GB Storage</li>
                    <li class="plan-feature">Plus Support</li>
                </ul>
                <div>
                    <button class="button">CHOOSE PLAN</button>
                </div>
            </article>
            <article class="plan">
                <h1 class="plan-name">PREMIUM</h1>
                <h2 class="plan-price">$99/month</h2>
                <h3>Your enterprise solution.</h3>
                <ul class="plan-features">
                    <li  class="plan-feature">10 Workspaces</li>
                    <li class="plan-feature">Unlimited Traffic</li>
                    <li class="plan-feature">Unlimited Storage</li>
                    <li class="plan-feature">Priority Support</li>
                </ul>
                <div>
                    <button class="button">CHOOSE PLAN</button>
                </div>
            </article>
        </div>
    </main>
              
            
!

CSS

              
                * {
    box-sizing: border-box;
}

body {
    margin: 0px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;

}

.main-header {
    background: #19b84c;
    width: 100%;
}

.brand-name {
    font-weight: bold;
    font-size: 25px;
    padding: 8px 16px;
    display: inline-block;
    vertical-align: middle;
}

.brand-name a {
    text-decoration: none;
    color: #0e4f1f;
}

.main-nav {
    display: inline-block;
    width: calc(100% - 200px);
    vertical-align: middle;
    text-align: right;
}

.main-nav-items {
    list-style: none;
    margin: 0px;
    padding: 0px;
}

.main-nav-item {
    display: inline-block;
    padding: 0px 16px;
    
}

.main-nav-item a {
    text-decoration: none;
    color: #0e4f1f;
    font-weight: bold;
}

.main-nav-item a:hover,
.main-nav-item a:active {
    color: white;
    margin-bottom: white 2px;
    border-bottom: 5px solid white;
}

.must-do a {
    color: white;
    background: #ff1b68;
    padding: 8px 16px;
    border-radius: 8px;
}

.must-do a:hover,
.must-do a:active {
    color: #ff1b68;
    background: white;
    border: 0px;
}

main {
    width: 100%;
    margin: 10px;
}

.plan-title {
    color: #19b84c;
    text-align: center;
    margin: 30px 0px;
}

.plans {
    margin: 40px 0px;
}

.plan {
    width: 30%;
    display: inline-block;
    background: #d5ffdc;
    text-align: center;
    padding: 16px;
    margin: 16px;
    vertical-align: middle;
}

.highlighted-plan {
    background: #19b84c;
    color: white;
    box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.5);
}
.plan-name {
    color: #0e4f1f;
}

.highlighted-plan-name {
    background: white;
    color:#19b84c;
    padding: 8px 16px;
    border-radius: 16px;
    box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.5);
}

.plan-price {
    color: #858585;
}

.highlighted-price {
    color: #0e4f1f;
}

.plan-features {
    list-style: none;
    padding: 0px;
}

.plan-feature {
    margin: 8px 0px;
}

.button {
    background: #0e4f1f;
    color: white;
    padding: 8px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    border: #0e4f1f solid 1.5px;
}

.button:hover,
.button:active {
    background: white;
    color: #19b84c;
}

.button :focus {
    outline: none;
}
              
            
!

JS

              
                
              
            
!
999px

Console