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>

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

<div id="main">
  <div id="container">
       <div id="title">
         <h1>Pre Junior Web Developer Mike Sense<h1>
           <h2>Creator of this rookie page</h2>
           </div>
           <div id="img-div">
             <img src="https://rosesareblueblog.files.wordpress.com/2018/05/unlikely-master-genius.jpg" alt="Sorry for a totally random picture" id="image">
             <p id="img-caption">Random google search for random genius</p>
           </div>
           <main>
             <div id="tribute-info">
               <h3>Here is a time line of Mike Sense FCC progress:</h3>
               <ul id="timeline">
                 <li><strong>Monday 30th March</strong> - Started with Responsive Web Design Certification. Finished Basic HTML,HTML5 and CSS.</li>
                 
                 <li><strong>Tuesday 31th March</strong> - Finished Apllied Visual Design.</li>
                 
                 <li><strong>Wednesday 1st April</strong> - Finished Applied Accessibility and Responsive Web Design Principles.</li>
                 
                 <li><strong>Thursday 2nd April</strong> - Finished CSS Flexbox.</li>
                 
                 <li><strong>Friday 3rd April</strong> - Finished CSS Grid and checked what the **** is coming next.</li>
                 
                 <li><strong>Saturday 4th April</strong> - Decided to start building this page.(first page building is a bit scary, but all good)</li>
                    </div>
                 <div id="extra">
                   <p id="note"><strong>One little note to FCC builders.</strong> Too many times you showed in the code with comments where to put properties with values. Didn't understand what is the point of instructions when you are already showing exactly where to put it. Everything else, SUPERB!</p>
                   
        <h4 id="link">I am not yet famous enough, but here's a link.    Empty <a href="https://en.wikipedia.org/wiki/Mike_Sense" target="_blank" id="tribute-link">Wikipedia</a> entry.</h4>
      
                 </div>
    </main>
    <div id="end"></div>
  </div>
  <hr>
  <footer>Written and coded by <a href="https://www.freecodecamp.org/MikeSense" target="_blank">Mike Sense</a>. Thank you for your epic course and time you give for review. Have a nice day!</footer>
</div>
                 
              
            
!

CSS

              
                p {
  font-size: 14px;
  margin: 0 auto;
}

#main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5%;
}

#container {
  background-color: #b2b2df;
  text-align: center;
  padding: 5%;
}

#img-div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#image {
  max-width: 50%;
  display: block;
  height: auto;
}

#timeline {
  max-width: 700px;
  text-align: left;
  list-style-position: inside;
  margin: auto;
}

#note {
  text-align: justify;
  width: 50%;
  margin: 3% 3% 3% 25%;
  font-size: 0.9em;
}

#link {
  text-align: center;
  width: 60%;
  margin: auto;
}

a:visited {
  color: red;
}

@media (max-width: 700px) {
  
#timeline {
    width: 90%;
    margin: 0 auto;
    font-size: 14px;
  }
  h1 {
    font-size: 25px;
  }
  h2 {
    font-size: 23px;
  }
  h3 {
    font-size: 21px;
  }
  h4 {
    font-size: 15px;
  }
  #note {
    font-size: 12px;
    width: 75%;
    margin: 10px auto;
    text-align: center;
  }
  #link {
    width: 90%;
  }
  p {
  font-size: 10px;
}
  
}
              
            
!

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