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

              
                <!-- Container -->
<div id="wrapper">
  
  <!-- Header starts here -->
  <header id="header">
    <div class="header-wrapper">
      <img id="header-img" src="https://climatelaunchpad.org/wp-content/uploads/2017/02/logo-for-random-dude-01-Copy.png" alt="logo" width="180px" height="80px"> 
      
      <!-- Navigation bar -->
          <nav id="nav-bar">  
              <ul>
                  <li><a class="nav-link" href="#update">Subscribe</a></li>  
                  <li><a class="nav-link" href="#about">About us</a></li>
                  <li><a class="nav-link" href="#video-section">Features</a></li>
                  <li><a class="nav-link" href="#what-we-do">What we do</a></li>
                  </ul>
              </nav>
      </div>
 </header>
  
  <!-- Header ends here -->
  
  <!-- Main body -->

  <div class="main">
    
    <!-- Abous us section -->
      <section id="about" class="section">
          <div class="holder">
              <h2>About us</h2>
              <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
              <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>              
          </div>
      </section>

    <!-- Video section -->
    
      <section id="video-section" class="section">
          <div class="holder">
            <h2>Features</h2>
              <iframe width="100%" height="480px" src="https://www.youtube.com/embed/Rg_Uml85FFI" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen id="video"></iframe>                
            </div>
      </section>

    <!-- What we do section -->
      <section id="what-we-do" class="section">
          <div class="holder">
            <h2>What we do</h2>
              <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
              <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
              <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
          </div>
      </section>

    <!-- Footer -->
      <section id="update" class="section">
        <div class="holder">
            <h2>Subscribe to get regular updates</h2>
            <form action="https://www.freecodecamp.com/email-submit" id="form">
                <label for="email">Email</label>
                <input type="email" name="email" placeholder="Please enter your email" id="email">
                <input type="submit" value="Subscribe" id="submit">
            </form>
        </div>
    </section>
  </div>
</div>
              
            
!

CSS

              
                * {
    box-sizing: border-box;
  }
  
  body{
    margin: 0;
    padding: 0;
    font-family: 'Merriweather', sans-serif; 
  }

#header{
  padding-bottom: 5px;
  background: white;
  position: sticky;
  top: 0;
}

.header-wrapper{
  background: white;
  width: 80%;
  height: 100%;
  margin: 0 auto;

}

li{
  padding-right: .5em; 
  
}

a{
  text-decoration: none;
  color: black;
}

.holder{
  width: 80%;
  height: 100%;
  margin: 0 auto;
}

.section{
  padding: 150px 0 70px 0;
}

h2{
  text-align: center;
}

p{
  text-align: justify;
}

#video-section{
  background-image: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
}

#update{
  margin: 0 10px;  
    text-align: center;
    background-image: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);    
}  

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
   .header-wrapper{
     display: flex;
     justify-content: center;
     flex-wrap: wrap;
  }
  
ul:nth-child(1){
  display: list-item;
  position: relative;
  left: 10px;
  text-align: center;
  }

  ul{
    display: flex;
    align-items: center;
    list-style-type: none;
    line-height: 1.5em;
  }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
   .header-wrapper{
     display: flex;
     justify-content: center;
      flex-wrap: wrap;
  }
  ul{
    display: flex;
    align-items: center;
    list-style-type: none;
    line-height: 1.5em;
  }
}


/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
   .header-wrapper{
     display: flex;
     justify-content: space-around;
      flex-wrap: wrap;
  }
    ul{
      display: flex;
      align-items: center;
      list-style-type: none;
      line-height: 1.5em;
}
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
   .header-wrapper{
      display: flex;
      justify-content: space-between;
  }
  ul{
    display: flex;
    align-items: center;
    list-style-type: none;
}
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
  .header-wrapper{
    display: flex;
    justify-content: space-between;
  }
  ul{
    display: flex;
    align-items: center;
    list-style-type: none;
}
}
              
            
!

JS

              
                
              
            
!
999px

Console