Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's 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 it's URL and the proper URL extention.

+ 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

Save Automatically?

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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<div>
  <header id="header">
    <img id="header-img" src="https://www.node40.com/assets/images/2019/logo.png" alt="">
    <div class="nav-bar">
      <nav id="nav-bar">
        <ul>
          <li><a href="#about" class="nav-link">About Node40</a></li>
          <li><a href="#what" class="nav-link">What We Do</a></li>
          <li><a href="#contact" class="nav-link">Contact Us</a></li>
        </ul>
       </nav>
    </div>
  </header><br><br><br>
    <main id="main">
      <h2 id="about">About Node40</h2>
        <p>NODE40 kicked off in early 2015 as a service provider offering Blockchain Masternode Hosting and Monitoring. In late 2015, NODE40 founders Perry Woodin and Sean Ryan needed to determine their own corporate tax liability from their cryptocurrency invoices but off-the-shelf solutions were not accurate and none were auditable. In reality, tens of millions of cryptocurrency users were and still are struggling to meet IRS and other countries’ tax reporting obligations so NODE40 set out to solve a complicated and prolific problem.
      <h2 id="what">What We Do</h2>
        <iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/uJcxOQliivE" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
      <h2 id="contact">Contact Us</h2>
      <form id="form" action="https://www.freecodecamp.org/email-submit">
        <label>Join our mailing list:
          <input type="email" id="email" name="email" placeholder="Enter your Email"></label>
          <input id="submit" type="submit" value="submit">
      </form>
    </main>
</div>
              
            
!

CSS

              
                #header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  top: 0;
  width: 100%; 
  position: fixed;
}
#header-img {
  background-color: black;
}
ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
li {
  display: inline;
}
@media only screen and (max-width: 600px) {
  body {
    background-color: lightblue;
  }
}
              
            
!

JS

              
                <nav id="nav-bar" class="nav-bar">
        <ul class="list-reset">
          <li><a href="#about" class="nav-link">About Us</a></li>
          <li><a href="#how-it-works" class="nav-link">How It Works</a></li>
          <li><a href="#plans" class="nav-link">Our Plans</a></li>
          <li><a href="#subscription" class="nav-link">Subscribtion</a></li>
        </ul>
      </nav>
              
            
!
999px

Console