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>

<main id="main-doc">

  <nav id="navbar">
    <header id="Flex">

      <a class="nav-link" id="LinkÅsa" href="#MS1">MS1</a>
      <a class="nav-link" id="LinkÅsa" href="#MS2">MS2</a>
      <a class="nav-link" id="LinkÅsa" href="#MS3">MS3</a>
      <a class="nav-link" id="LinkÅsa" href="#MS4">MS4</a>
      <a class="nav-link" id="LinkÅsa" href="#MS5">MS5</a>
    </header>
    <h2>Links to different Documents</h2>
  </nav>

  <section id="MS1" class="main-section">
    <header id="Number_1" id="MS1">
      <h1>MS1</h1>
    </header>
    <h1 id="Number_1">Number_1</MS1>
      <h2>Test 1 completed
      </h2>
      <p>
        Brands
      </p>
      <p>
        Cars
      </p>
      <code>1 + 1 = 2</code>
      <h2 class="MFCB">Vehicles</h2>
      <ol>
        <li>Toyota</li>
        <li>Honda</li>
        <li>Audi</li>
        <li>Mercedes-Benz</li>
        <li>KIA</li>
      </ol>

  </section>

  <section id="MS2" class="main-section">
    <header id="MS2">
      <h1>MS2</h1>
    </header>
    <h1 id="Number_2">Number_2</h1>
    <h2>
      Test 2 completed
    </h2>
    <p>
      Date completed:
    </p>
    <p>
      2020 15 Nov 14:45
    </p>
    <code>3 - 1 = 2</code>

  </section>

  <section id="MS3" class="main-section">
    <header id="MS3">
      <h1>MS3</h1>
    </header>
    <h1 id="Number_3">Number_3</h1>
    <h2>
      Test 3 completed
    </h2>
    <p>
      Date completed:
    </p>
    <p>
      2020 15 Nov 14:45
    </p>
    <code>2 / 1 = 2</code>

  </section>

  <section id="MS4" class="main-section">
    <header id="MS4">
      <h1>MS4</h1>
    </header>
    <h1 id="Number_4">Number_4</h1>
    <h2>
      Test 4 completed
    </h2>
    <p>
      Date completed:
    </p>
    <p>
      2020 15 Nov 14:46
    </p>
    <code>2 * 1 = 2</code>

  </section>

  <section id="MS5" class="main-section">
    <header id="MS5">
      <h1>MS5</h1>
    </header>
    <h1 id="Number_5">Number_5</h1>
    <h2>
      Test 5 completed
    </h2>
    <p>
      Date completed:
    </p>
    <p>
      2020 16 Nov 9:57
    </p>
    <code>5 % 3 = 2</code>

  </section>

</main>
              
            
!

CSS

              
                #main-doc {
  font-family: arial;
  font-size: 15px;
}
#MS1 {
  background-color: #e2e2e2;
}
#MS2 {
  background-color: #d5d5d5;
}
#MS3 {
  background-color: #c8c8c8;
}
#MS4 {
  background-color: #b9b9b9;
}
#MS5 {
  background-color: #aaaaaa;
}

.MFCB {
  font-family: arial;
  box-shadow: 0px -5px red, 0px -10px white, 0px -15px green;
}
#Flex {
  display: flex;
  justify-content: space-between;
}
#LinkÅsa {
  color: green;
  font-family: arial;
  padding: 20px;
  background-color: orange;
  border-radius: 20px;
  text-shadow: 1px 1px 1px #00ffff;
}
#LinkÅsa:hover {
  border-radius: 50px;
  text-shadow: 2px 2px 5px #ffffff, 2px 7px 7px #ffffaa, -2px -2px 1px hotpink,
    4px 2px 5px #0000ff, -3px 7px 4px #00ff00, 2px -5px 5px #0f00ff,
    10px -10px 10px pink, 2px 20px 5px #0f00ff;
  animation-name: Åsa;
  animation-duration: 120000000s;
  position: relative;
  repeat: infinite;
  animation-iteration-count: 3;
  background-color: #ffffaf;
}
@keyframes Åsa {
  0% {
    background-color: #000fff;
    color: white;
    text-shadow: 2px 2px 2px gold;
  }
  1% {
    transform: rotate(5000000deg);
    font-size: 1000000px;
  }
  50% {
  }
  60% {
  }
  70% {
  }
  80% {
  }
  90% {
  }
  100% {
  }
}

@media (min-width: 1025px) {
  #navbar {
    display: flex;
    justify-content: flex-start;
    text-align: end;
    left: 10px;
    width: auto;
    heigth: auto;
    position: absolute;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console