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>

<html>
  <header>...</header>
  <main id="main-doc">
    <div id="navigation">
      <nav id="navbar">
      <header>How Insurance Works</header>
        <ul class="nav-links">
          <a class="nav-link" href="#coverages"><li>Coverages</li></a>
          <a class="nav-link" href="#optional_coverages"><li>Optional Coverages</li></a>
          <a class="nav-link" href="#exclusions"><li>Exclusions</li></a>
          <a class="nav-link" href="#conditions"><li>Conditions</li></a>
          <a class="nav-link" href="#claims"><li>Claims</li></a>
      </nav>
        </div>
    <div id="main">
    <section id="coverages" class="main-section">
      <header>Coverages</header>
      <pre>
      <code> #main {
      font: bold;
      }
      </code>
      </pre>
      <p>The primary coverage options included.</p>
      <ul>
        <li>Coverage A</li>
        <li>Coverage B</li>
        <li>Coverage C</li>
        <li>Coverage D</li>
        <li>Additional</li>
      </ul>
      <p>Our coverage forms are very borad compared to competitors.</p>
      </section>
      <section id="optional_coverages" class="main-section">
        <header>Optional Coverages</header>
        <pre>
        <code>
        #header{
        font: italics;
        }
        </code>
        </pre>
        <p>Optional coverages available are below.</p>
        <p>By adding optional coverages, you can continue to broaden your policy forms</p>
      </section>
      <section id="exclusions" class="main-section">
        <header>Exclusions</header>
        <pre>
        <code>
        .body{
        font-style: italics;
        }
        </code>
        </pre>
        <p>Exclusions on the policy are below.</p>
        <p>In some instances this can cause gaps in coverage.</p>
      </section>
      <section id="conditions" class="main-section">
        <header>Conditions</header>
        <pre>
        <code>
        #main{
        font: bold;
        }
        </code>
        </pre>
        <p>The following conditions apply to all policies and may vary by state.</p>
        <p>To report a claim, it needs to be done in a timely fashion</p>
      </section>
      <section id="claims" class="main-section">
        <header>Claims</header>
        <pre>
        <code>
        .main{
        font-size: 10px;
        }
        </code>
        </pre>
         <p>Our motto is we pay claims and we pay them fast.</p>
        <p>We have the ability to handle complex and high net worth claims.</p>
      </section>
    </div>
      
              
            
!

CSS

              
                body {margin: 0;}

#navbar {
  position: fixed;
}

ul.navbar {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 25%;
    background-color: #f1f1f1;
    position: fixed;
    height: 100%;
    overflow: auto;
}

ul.navbar li a {
    display: block;
    color: #000;
    padding: 8px 16px;
    text-decoration: none;
}
 
ul.navbar li a.active {
    background-color: #4CAF50;
    color: white;
}

ul.navbar li a:hover:not(.active) {
    background-color: #555;
    color: white;
}

section {
    margin-left: 25%;
    padding: 1px 16px;
    height: 1000px;
}

@media screen and (max-width: 900px) {
    ul.navbar {
        width: 100%;
        height: auto;
        position: relative;
    }
    ul.navbar li a {
        float: left;
        padding: 15px;
    }
    section {margin-left: 0;}
}

@media screen and (max-width: 400px) {
    ul.navbar li a {
        text-align: center;
        float: none;
    }
}
              
            
!

JS

              
                
              
            
!
999px

Console