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 id="header">
        <img id="header-img" alt="Netacles Digital logo" src="https://netacles.com/wp-content/uploads/elementor/thumbs/Netacles-logo-tight-owukpicni0is5j9us2h143ice9ncodcnblmz5n7fr8.png">
        <nav id="nav-bar">
            <ul class="nav-bar-list">
                <li><a href="#features" class="nav-link">Features</a></li>
                <li><a href="#how-it-works" class="nav-link">How It Works</a></li>
                <li><a href="#pricing" class="nav-link">Pricing</a></li>
            </ul>
        </nav>
    </header>
    <main>
        <section id="title">
            <h1>Grow your business online</h1>
            <form id="form" action="https://www.freecodecamp.com/email-submit" method="POST">
                <input name="email" type="email" id="email" placeholder="Enter your email address" required><br>
                <input type="submit" id="submit" value="Get started" class="button-class">
            </form>
        </section>
        <section id="features">
            <section class="features-group">
                <h2>Website Design</h2>
                <p>Build a website that generates sales and gets you more clients. We help you build a professional website that showcases your products and services online.</p>
            </section>
            <section class="features-group">
                <h2>Branding</h2>
                <p>Stand out from the crowd. We design professional logos and branding assets that you need to make a good first impression and attract the right audience.</p>
            </section>
            <section class="features-group">
                <h2>Digital Marketing</h2>
                <p>Make the most out of your investment. We use proven digital marketing strategies to help you make more sales and generate revenue online.</p>
            </section>
        </section>
        <section id="how-it-works">
            <iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/y8Yv4pnO7qc" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
        </section>
        <section id="pricing">
            <section class="pricing-group">
                <h3>Website design</h3>
                <h2 class="cost">$600</h2>
                <ul>
                    <li>Lorem ipsum.</li>
                    <li>Lorem ipsum.</li>
                    <li>Lorem ipsum dolor.</li>
                    <li>Lorem ipsum.</li>
                </ul>
                <button type="submit" class="button-class">select</button>
            </section>
            <section class="pricing-group">
                <h3>Branding</h3>
                <h2 class="cost">$900</h2>
                <ul>
                    <li>Lorem ipsum.</li>
                    <li>Lorem ipsum.</li>
                    <li>Lorem ipsum dolor.</li>
                    <li>Lorem ipsum.</li>
                </ul>
                <button type="submit" class="button-class">select</button>
            </section>
            <section class="pricing-group">
                <h3>Digital Marketing</h3>
                <h2 class="cost">$1200</h2>
                <ul>
                    <li>Plays similar to a Trumpet</li>
                    <li>Great for Jazz Bands</li>
                    <li>Lorem ipsum dolor.</li>
                    <li>Lorem ipsum.</li>
                </ul>
                <button type="submit" class="button-class">select</button>
            </section>
        </section>
    </main>
    <footer>
            <ul>
                <li><a href="#">Privacy</a></li>
                <li><a href="#">Terms</a></li>
                <li><a href="#">Contact</a></li>
            </ul>
            <p>Copyright 2021, Netacles Digital</p>
    </footer>
    <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
              
            
!

CSS

              
                body {
    background: #f5f3f4;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
#header-img {
    position: fixed;
    top: 0;
    width: 90%;
    height: 10vh;
    padding-left: 1rem;
    padding-right: 0;
    background-color: #f5f3f4;
    background-size: contain;
    background-position: center;
    z-index: 1;
    padding-top: 1rem;
}
.nav-bar-list {
    padding: 0;
}

nav li {
    display: block;
    padding-bottom: 0.4rem;
}
li {
    display: inline;
    padding-right: 0.5rem;
}
li a {
    color: inherit;
    text-decoration: inherit;
}
#nav-bar {
    position: fixed;
    text-align: center;
    top: 0;
    padding-top: 12vh;
    width: 100%;
    background-color: #f5f3f4;
}
main {
    text-align: center;
}
#title {
    text-align: center;
    margin-top: 35vh;
}
#email {
    width: 85%;
    padding: 0.2rem;
    margin-bottom: 1rem;
    font-family: inherit;
}
#submit {
    font-weight: 900;
    padding: 0.2rem;
}
.button-class {
    text-transform: uppercase;
    background-color: orange;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    border-radius: 2px;
    font-family: inherit;
}
.button-class:hover {
    background-color: darkorange;
}
.features-group {
    padding-top: 3rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
#video {
  margin-top: 3rem;
  margin-bottom: 4rem;
}
.pricing-group {
    border-color: black;
    border-width: 1px;
    border-style: solid;
    border-radius: 3px;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}
.pricing-group h3 {
  background-color: #d3d3d3;
  margin: 0;
  padding: 0.5rem;
  text-transform: uppercase;
}
.pricing-group ul {
    padding-left: 0;
    padding-bottom: 0.3rem;
}
.pricing-group li {
    display: block;
    padding-bottom: 0.5rem;
}
button {
    padding: 0.3rem 1rem;
}
footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background-color: #d3d3d3;
    padding-right: 1rem;
    margin-top: 2rem;
}
footer ul {
  margin-bottom: 0;
}
footer p {
  margin-top: 0.2rem;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
    #video {
        width: 100%;
    }
}

@media (min-width: 600px){
    #header-img {
        width: 15vw;
        padding-left: 2rem;
        
    }
    #nav-bar {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        top: 0;
        left: 0;
        right: 0;
        padding-top: 1rem;
    }
    nav li {
        display: inline;
        padding-right: 4rem;
    }
    #title {
        margin-top: 6rem;
    }
    #email {
        width: 22%;
    }
    #pricing {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }
    .pricing-group {
        width: 25%;
        margin-right: 0.5rem;
        margin-left: 0.5rem;
    }
  footer {
    margin-left: 8rem;
    margin-right: 8rem;
    padding-right: 1rem;
    margin-top: 2rem;
  }
}
              
            
!

JS

              
                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 

              
            
!
999px

Console