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>

<!-- 

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 

-->
<body>
    
    <header>
            <nav id="navbar">
                    <header id="first-header">5 Overnight Oats Recipes</header>
                    <a href="#banana_overnight_oats" class="nav-link">Banana Overnight Oats</a>
                    <a href="#blueberry_overnight_oats" class="nav-link">Blueberry Overnight Oats</a>
                    <a href="#strawberry_overnight_oats" class="nav-link">Strawberry Overnight Oats</a>
                    <a href="#kiwifruit_overnight_oats" class="nav-link">Kiwifruit Overnight Oats</a>
                    <a href="#chocolate_overnight_oats" class="nav-link">Chocolate Overnight Oats</a>
                </nav>
        
    </header>

    <main id="main-doc">
        <section class="main-section" id="banana_overnight_oats">
            <header>Banana Overnight Oats</header>
            <p>Rolled oats are a type of lightly processed whole-grain food. Traditionally, they are made from oat groats that have been dehusked and steamed, before being rolled into flat flakes under heavy rollers and then stabilized by being lightly toasted.</p>
            <p>Raw bananas (not including the peel) are 75% water, 23% carbohydrates, 1% protein, and contain negligible fat. A 100-gram reference serving supplies 89 Calories, 31% of the US recommended Daily Value (DV) of vitamin B6, and moderate amounts of vitamin C, manganese and dietary fiber, with no other micronutrients in significant content</p>
            <p>Aside from the mentioned fruites, here are the other ingredients we will use for the recipes:</p>
            <ul>
                <li>rolled oats</li>
                <li>milk</li>
                <li>honey and/or maple syrup</li>
                <li>cocoa powder</li>
                <li>any nut (Almonds are preferred)</li>
                <li>yogurt (Greek)</li>
            </ul>
        </section>
        <br>
        <section class="main-section" id="blueberry_overnight_oats">
            <header>Blueberry Overnight Oats</header>
            <p>Rolled oats that are sold for porridge usually have had the tough outer bran removed. They have often, but not always, been lightly baked, pressure-cooked, or otherwise processed in some fashion. Thick-rolled oats are large whole flakes, and thin-rolled oats are smaller, fragmented flakes. Rolled whole oats, without further processing, can be cooked into a porridge and eaten as old-fashioned oats, but more highly fragmented and processed rolled oats absorb water much more easily and therefore cook faster into a porridge, so they are sometimes called "quick" or "instant" oats.</p>
            <p>Blueberries consist of 14% carbohydrates, 0.7% protein, 0.3% fat and 84% water (table). They contain only negligible amounts of micronutrients, with moderate levels (relative to respective Daily Values) (DV) of the essential dietary mineral manganese, vitamin C, vitamin K and dietary fiber (table).[5] Generally, nutrient contents of blueberries are a low percentage of the DV (table). One serving provides a relatively low caloric value of 57 kcal per 100 g serving and glycemic load score of 6 out of 100 per day.</p>
            <code></code>
            <code></code>
            <code></code>
            <code></code>
            <code></code>
        </section>
        <br>
        <section class="main-section" id="strawberry_overnight_oats">
            <header>Strawberry Overnight Oats</header>
            <p>Besides porridge, rolled oats are most often the main ingredient in granola and muesli. They can be further processed into a coarse powder, which, when cooked, becomes a thick liquid like broth. Finer oatmeal powder is often used as baby food. </p>
            <p>One serving (100 g; see Table) of strawberries contains approximately 33 kilocalories, is an excellent source of vitamin C, a good source of manganese, and provides several other vitamins and dietary minerals in lesser amounts. Strawberries contain a modest amount of essential unsaturated fatty acids in the achene (seed) oil.</p>
        </section>
        <br>
        <section class="main-section" id="kiwifruit_overnight_oats">
            <header>Kiwifruit Overnight Oats</header>
            <p>Whole oats are an excellent source of thiamine, iron, and dietary fiber. Whole oats are also the only source of antioxidant compounds known as avenanthramides; these are believed to have properties which help to protect the circulatory system from arteriosclerosis.Oat products also contain beta-glucan.</p>
            <p>In a 100-gram amount, green kiwifruit provides 61 calories, is 83% water and 15% carbohydrates, with negligible protein and fat (table). It is particularly rich (20% or more of the Daily Value, DV) in vitamin C (112% DV) and vitamin K (38% DV), has a moderate content of vitamin E (10% DV), with no other micronutrients in significant content. Gold kiwifruit has similar nutritional value, although only vitamin C has high content in a 100 gram amount (194% DV, table). Kiwifruit seed oil contains on average 62% alpha-linolenic acid, an omega-3 fatty acid. Kiwifruit pulp contains carotenoids, such as provitamin A beta-carotene, lutein and zeaxanthin.</p>
        </section>
        <br>
        <section class="main-section" id="chocolate_overnight_oats">
            <header>Chocolate Overnight Oats</header>
            <p>Dark chocolate is 1% water, 46% carbohydrates, 43% fat, and 8% protein (table). In a 100 grams (3.5 oz) reference amount, dark chocolate supplies several dietary minerals in significant content, such as iron at 92% of the Daily Value (DV) and vitamin B6 at 29% DV (table). Dark chocolate contains 70-100% cocoa solids (nutrition table). </p>
            <p>Strained yogurt is a good source of protein, calcium, iodine, and vitamin B12.[41][42] Strained yogurt includes additional steps compared to conventional yogurt, where fermented milk is strained after coagulation to remove liquid whey and lactose, yielding higher protein content.[43] Strained yogurt is required to have at least 5.6% protein content, relative to the 2.7% for unstrained yogurt.[41] Strained yogurt has less sugar content than other yogurts.</p>
        </section>
        <br>
        <br>
        <br>
        <span>Copyright&copy;2019</span>  
    </main>
</body>





              
            
!

CSS

              
                a {
    display: block;
    text-decoration: none;
    margin: 0 auto;
    padding: 20px 20px 30px 20px;
    width: 250px;
    text-align: left;
    color: black;
}

/* h1 {
    padding: 10px 10px 40px 10px;
    text-align: left;
} */

nav {
    position: fixed;
    top: 0;
    left: 0;
    border-right: solid;
    border-color: orange;
    height: 100%;
    width: 365px;
}

main {
    margin: 50px 400px;
}

header {
    font-size: 24px;
    font-weight: bold;
}

#first-header {
    padding: 20px 10px 40px 10px;
    text-align: left;
}

@media screen and (min-width:576px){
    body {
        background: whitesmoke;
    }

    nav {
        background: whitesmoke;
    }
}

              
            
!

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