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. 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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Details

Privacy

Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO

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.

Template

Make Template?

Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.

Template URL

Any Pen can act as a template (even if you don't flip the toggle above) with a special URL you can use yourself or share with others. Here's this Pen's template URL:

Screenshot

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.

Upgrade to PRO

HTML

              
                
<!DOCTYPE html> 
<head>
  <style>
    .container {
      display: grid;
      background-color: #e0e0d1;
      font-family: Verdana;
      grid-template-columns: auto 2fr auto 1fr;
      grid-template-rows: 2fr 2fr 1fr;
      grid-template-areas:
        'a a f f'
        'c c b b'
        'd d d d';
      align-items: start;
      grid-gap: 50px;
    }
   
    #header-img {
      display: grid;
      grid-area: a;
      justify-self: end;
      width: 20%;
      height: 20%;
    }
    .container .menu 
    {
      grid-area: f;
      justify-content: space-around;
      width: 35px;
    }
  
    #home {
      display: grid;
      grid-area:b;
      
    }
    #video{
      grid-area: a;
    }
    h1{ 
      display: grid;
      grid-area: f;
  
  </style>
</head>
<body>
  <div class="container">
  <header id="header">
  <img id="header-img" src="https://media.wired.com/photos/5bb532b7f8a2e62d0bd5c4e3/master/pass/bee-146810332.jpg" alt="Company logo">
    <nav id="nav-bar" class=menu> 
      <div>
      <ul >
        <li>
          <a href="#home" class="nav-link">Home</a></li>
        <li>
          <a href="#about" class="nav-link">About</a></li>
        <li>
        </div>
          <a href="#contact"class="nav-link">Contact</a> </li>
      </ul>
    <h1> Homemade Mead</h1>
  </header>
    <section id="home">
       <iframe id="video" width="414" height="314" src="https://www.youtube.com/embed/2YwAvLru2ec" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
      
    </section>
    <section id="about">
    </section>
    <section id="contact">
    </section>
    </div>
</body>
</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 

-->

              
            
!

CSS

              
                
              
            
!

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
The Pen is mightier than the sword.

Console