css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

<!-- 

Hello Camper!

For now, the test suite only works in Chrome! Please read the README below in the JS Editor before beginning. Feel free to delete this message once you have read it. Good luck and Happy Coding! 

- The freeCodeCamp Team 

-->
<nav id="navbar">
  <header id="How_To_Cook_Eggs">How To Cook Eggs</header>
  <ul>
    <li><a class="nav-link" href="#Introduction_to_Eggs">Introduction to Eggs</a></li>
    <li><a class="nav-link" href="#Fried_Eggs">Fried Eggs</a></li>
<li><a class="nav-link" href="#Boiled_Eggs">Boiled Eggs</a></li>
<li><a class="nav-link" href="#Scrambled_Eggs">Scrambled Eggs</a></li>
<li><a class="nav-link" href="#Poached_Eggs">Poached Eggs</a></li>
  </ul>
</nav>

<main id="main-doc">
 <!-- SECTION 1 -->
  <section class="main-section" id="Introduction_to_Eggs">
    <header>Introduction to Eggs</header>
    <article>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
      <p>
        <code>Code relating to eggs. Eggs = mushrooms x 5</code>
      <p>
      Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    <p> 
    </article>
  </section>
<!-- SECTION 2 -->
  <section class="main-section" id="Fried_Eggs">
    <header>Fried Eggs</header>
    <article>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
      <p>
        <code>Code relating to eggs. Eggs = mushrooms x 5</code>
      <p>
      Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    <p> 
      This is where I've decided to put the bullet point list. It's instructions on how to fry an egg:
      <p>
        <li>Take a frying pan, put it on a medium heat</li>
        <li>Put a teaspoon of coconut oil in the pan</li>
        <li>When the oil has heated up, crack your egg into the pan</li>
        <li>As the egg cooks, use a spatula to ensure the bottom of the egg doesn't stick to the pan</li>
        <li>Once the egg white is completely cooked, take the egg out. If you prefer your egg over-easy, flip the egg over for 10 seconds before taking it out</li>
    </article>
  </section>
<!-- SECTION 3 -->
  <section class="main-section" id="Boiled_Eggs">
    <header>Boiled Eggs</header>
    <article>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
      <p>
        <code>Code relating to eggs. Eggs = mushrooms x 5</code>
      <p>
      Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    <p> 
    </article>
  </section>
<!-- SECTION 4 -->
  <section class="main-section" id="Scrambled_Eggs">
    <header>Scrambled Eggs</header>
    <article>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
      <p>
        <code>Code relating to eggs. Eggs = mushrooms x 5</code>
      <p>
      Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    <p> 
    </article>
  </section>
<!-- SECTION 5 -->
  <section class="main-section" id="Poached_Eggs">
    <header>Poached Eggs</header>
    <article>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
      <p>
        <code>Code relating to eggs. Eggs = mushrooms x 5</code>
      <p>
      Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    <p> 
    </article>
  </section>
</main>
            
          
!
            
              
  
#navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 100%;
  border: 1px solid black;
  min-width: 250px;
  max-width: 300px;
  font-family: "Roboto", "Arial";
}

#navbar ul {
  height: 100%;
  margin: 0px;
}

#navbar li {
  color: black;
  position: relative;
  width: 100%;
  list-style: none;
  border: solid 1px;
  display: inline-block;
}

#navbar a {
  text-decoration: none;
}

#navbar header {
  font-size: 25px;
  font-weight: bold;
  text-align: center;
  padding: 20px;
  border-bottom: solid 1px;
}

.main-section article {
  margin-bottom: 50px;
}

#main-doc {
  font-family: "Roboto", "Arial"; 
  position: relative;
  margin-top: 40px;
  margin-left: 350px;
  margin-bottom: 100px;
 
}

#main-doc header {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}

code {
  display: block;
  background-color: #f7f7f7;
  margin: 20px;
  padding: 20px;
  border-radius: 5px;
}

li {
  padding-left: 30px;
  line-height: 1.9;
}

@media (max-width: 500px) {
  #navbar {
  position: fixed;
  left: 0;
  top: 0;
  max-width: 1200px;
  width: 100%;
  text-align: center;
  border: 1px solid black;
  }
  #main-doc {
  margin-top: 290px;
  margin-left: 50px;
  margin-bottom: 50px;
  }
}
            
          
!
            
              // !! 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
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console