123

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>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>freeCodeCamp Technical Documentation</title>
        <link type="text/css" rel="stylesheet" href="technical-doc.css">
        <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/all.css" integrity="sha384-5sAR7xN1Nv6T6+dT2mhtzEpVJvfS3NScPQTrOxhwjIuvcA67KV2R5Jz6kr4abQsz" crossorigin="anonymous">
        <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
    </head>
    <body>
        <nav id="navbar">
            <div id="header">
                <img id="logo" src="http://www.gracewitter.com/wp-content/uploads/2018/10/fcc-techDoc-logo.png">
                <header>Documentation</header>
                <div id="search-container">
                    <form action="#">
                        <input type="text" placeholder="Search..." name="search">
                        <button type="submit"><i class="fa fa-search"></i></button>
                    </form>
                </div>
            </div>
            <ul>
                <a class="nav-link" href="#Section_1" rel="internal" ><li id="first-nav">Section 1</li></a>
                <a class="nav-link" href="#Section_2" rel="internal"><li>Section 2</li></a>
                <a class="nav-link" href="#Section_3" rel="internal"><li>Section 3</li></a>
                <a class="nav-link" href="#Section_4" rel="internal"><li>Section 4</li></a>
                <a class="nav-link" href="#Section_5" rel="internal"><li>Section 5</li></a>
            </ul>
        </nav>
        <main id="main-doc">
            <section class="main-section" id="Section_1">
                <header>Section 1</header>
                <article>
                    <p>Cupcake ipsum dolor sit amet wafer. Sweet roll toffee icing cake sugar plum bonbon powder gummi bears I love. I love jelly-o chocolate cake dessert. Marzipan icing cake cake I love.</p>
                    <p>Cupcake candy I love sesame snaps cookie. Sesame snaps tart oat cake caramels powder. Jelly-o candy pudding gummi bears brownie jelly-o sesame snaps.</p>
                    <li>Bear claw tart muffin topping. Apple pie cotton candy marzipan lemon drops tart ice cream gummi bears. Toffee jelly I love marshmallow biscuit. Gummies cookie jelly-o fruitcake marzipan jelly.</li>
                    <code>Liquorice muffin I love brownie tiramisu dragée. </code>
                    
                </article>
            </section>
            <section class="main-section" id="Section_2">
                <header>Section 2</header>
                <article>
                    <p>Bonbon croissant gummi bears cookie toffee gummi bears carrot cake. Cake chupa chups cupcake marzipan lollipop pudding. I love I love I love bonbon cookie cookie chocolate bar chocolate cake.</p>
                    <p>Cake donut soufflé cheesecake I love cookie. Candy canes sweet tootsie roll ice cream soufflé lollipop pie I love. Sweet roll candy dragée.</p>
                    <li>Tiramisu pastry cupcake. Cake lollipop chocolate bar chocolate. Chupa chups chocolate cake pie dragée sesame snaps marshmallow pudding toffee.</li>
                    <li>I love lollipop tart candy marshmallow. Biscuit powder powder carrot cake topping sesame snaps I love. Liquorice cupcake danish I love tiramisu. I love icing liquorice gummies.</li>
                    <code>Fruitcake biscuit cookie I love bear claw cotton candy cake I love marshmallow.</code>
                </article>
            </section>
            <section class="main-section" id="Section_3">
                <header>Section 3</header>
                <article>
                    <p>I love chupa chups powder topping cake topping tootsie roll gummies. Powder liquorice halvah pastry halvah. Danish gingerbread sweet roll dessert I love jelly beans. Fruitcake cotton candy ice cream dessert I love candy cupcake.</p>
                    <p>Chocolate bar chocolate cake croissant sesame snaps bear claw dragée pudding wafer cookie. Pastry brownie marzipan cheesecake lemon drops liquorice chocolate cake chupa chups muffin. Toffee cake pudding ice cream jujubes candy canes soufflé lollipop.</p>
                    <li>Macaroon I love candy. Candy canes dessert tootsie roll liquorice jelly-o muffin sesame snaps lollipop. Powder macaroon I love croissant sweet cake carrot cake I love cake.</li>
                    <code>Jelly-o caramels chocolate cake marshmallow gummies jelly-o bonbon toffee cake. </code>
                </article>
            </section>
            <section class="main-section" id="Section_4">
                <header>Section 4</header>
                <article>
                    <p>Tiramisu jelly-o lollipop I love pudding. Wafer candy canes wafer bonbon. Apple pie jelly-o sweet fruitcake sugar plum I love I love wafer toffee.</p>
                    <p>Croissant cake bonbon bear claw. Gingerbread wafer pastry chocolate cake sweet. Biscuit macaroon cake I love.</p>
                    <li>Cheesecake I love macaroon cake macaroon. Lollipop marzipan brownie. Bear claw I love I love gummies tiramisu cotton candy.</li>
                    <code>Danish I love croissant danish marzipan donut biscuit.</code>
                </article>
            </section>
            <section class="main-section" id="Section_5">
                <header>Section 5</header>
                <article>
                    <p>I love oat cake I love sweet roll cake chupa chups sweet I love liquorice. Lemon drops cake chupa chups gummies apple pie. Apple pie biscuit dragée powder topping jelly beans chocolate lollipop chocolate.</p>
                    <p>Soufflé wafer gummies I love. Cheesecake candy canes brownie oat cake fruitcake. Croissant apple pie brownie bonbon.</p>
                    <li>Pastry muffin tootsie roll candy pie halvah gummies. Sugar plum brownie cake fruitcake halvah icing. I love pudding cheesecake cake dessert wafer tootsie roll.</li>
                    <code>Soufflé wafer gummies I love. </code>
                </article>
            </section>
        </main>
    </body>
</html>
            
          
!
            
              body{
    font-family: 'Roboto', sans-serif;
    color: #555;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
header{
    font-size: 1.5em;
    font-weight: bold;
    color: #B3B3B3;
    margin: 0.83em 0;
}
#navbar{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 10px 25px;
    width: 300px;
    min-width: 290px;
    color: #B3B3B3;
}
#navbar header{
    text-align: center;
}
#navbar li{
    border-bottom: #1B998B 1.5px solid;
    list-style: none;
    position: relative;
    width: 110%;
    left: -60px;
    padding: 10px 10px 10px 45px;
    background-color: #6DBEB5;
}
#navbar li:hover,
#navbar li:active{
    background-color: #1B998B;
    font-weight: bold;
}
#first-nav{
    border-top: #1B998B 1.5px solid;
}
#navbar a{
    color: black;
    text-decoration: none;
    cursor: pointer;
}
#logo{
    width: 200px;
    height: auto;
}
#search-container{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;    
}
#search-container input{
    width: 70%;
    height: 25px;
    padding: 5px 10px;
    border: 1.5px solid #1B998B;
    font-size: 17px;
    color: #B3B3B3;
}
#search-container button{
    width:  35px;
    height: 37px;
    cursor: pointer;
    margin-left: -5px;
    font-size: 15px;
    background-color: #1B998B;
    border: none;
}
#search-container i{
    font-size: 1.1em;
    color: #FDFBFB;
}

#main-doc{
    padding: 10px 25px;
    border-left: #1B998B 2px solid;
    width: 80%;
}
section article{
    margin: 15px;
    font-size: 1em;
}
section li{
    margin:15px 0px 0px 20px;
}
code{
  display:block;
    text-align: left;
  white-space: pre;
  position: relative;
    word-break: normal;
    word-wrap: normal;
    line-height: 2;
    background-color:#f7f7f7;
  padding:15px;
  margin:10px;
    border-radius:5px;
}

@media only screen and (max-width: 815px){
    body{
        flex-direction: column;
        align-items: center;
        justify-content: center
    }
    #main-doc{
        border: none;
    }
}
            
          
!
            
              // !! 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.

Console