Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Double Vertical Scroll Page</title>
</head>
<body>
  <header>
    <p>Double Vertical Scroll Page</p>
  </header>
  <section class="gallery">
    <img src="https://placekitten.com/500/600" alt="">
     <img src="https://placekitten.com/500/200" alt="">
     <img src="https://placekitten.com/500/400" alt="">
     <img src="https://placekitten.com/400/500" alt="">
    <img src="https://placekitten.com/500/700" alt="">
  </section>
  <article>
    <div class="body-article">
      <h1>Double Vertical Scroll Page</h1>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Soluta perferendis quod dolorum, accusamus, sint delectus minus molestias autem fuga vel libero esse, voluptatum magnam aut voluptatem tempore officia mollitia non facere nisi voluptas incidunt quisquam! Quis eos voluptatem dolor incidunt laboriosam amet quisquam maxime eligendi officiis veritatis ipsa, in nulla officia ipsam quo quibusdam aliquid quidem soluta iure obcaecati aspernatur enim! Possimus architecto culpa recusandae excepturi, neque, autem veritatis repellendus corporis alias odit id quae at reiciendis optio, aut illum! Repudiandae minima eos sint neque sed culpa, quaerat dolores, incidunt quos esse, maiores corporis! Eveniet exercitationem saepe iste sequi inventore.</p>
          <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Soluta perferendis quod dolorum, accusamus, sint delectus minus molestias autem fuga vel libero esse, voluptatum magnam aut voluptatem tempore officia mollitia non facere nisi voluptas incidunt quisquam! Quis eos voluptatem dolor incidunt laboriosam amet quisquam maxime eligendi officiis veritatis ipsa, in nulla officia ipsam quo quibusdam aliquid quidem soluta iure obcaecati aspernatur enim! Possimus architecto culpa recusandae excepturi, neque, autem veritatis repellendus corporis alias odit id quae at reiciendis optio, aut illum! Repudiandae minima eos sint neque sed culpa, quaerat dolores, incidunt quos esse, maiores corporis! Eveniet exercitationem saepe iste sequi inventore.</p>
      <h2>Lorem ipsum</h2>
      <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Soluta perferendis quod dolorum, accusamus, sint delectus minus molestias autem fuga vel libero esse, voluptatum magnam aut voluptatem tempore officia mollitia non facere nisi voluptas incidunt quisquam! Quis eos voluptatem dolor incidunt laboriosam amet quisquam maxime eligendi officiis veritatis ipsa, in nulla officia ipsam quo quibusdam aliquid quidem soluta iure obcaecati aspernatur enim! Possimus architecto culpa recusandae excepturi, neque, autem veritatis repellendus corporis alias odit id quae at reiciendis optio, aut illum! Repudiandae minima eos sint neque sed culpa, quaerat dolores, incidunt quos esse, maiores corporis! Eveniet exercitationem saepe iste sequi inventore.</p>
      
    </div>
  </article>
</body>
</html>
              
            
!

CSS

              
                body, html{
  height: 100vh;
  width: 100%;
  box-sizing: border-box;
}
header{
  background: #333;
  padding: 20px;
  text-align: center;
  position: fixed;
  z-index: 2;
  width: 100%;
  p{
    color: #fff;
    font-size: 20px;
  }
}
.gallery{
  width: 40%;
  position: fixed;
  overflow-x: hidden;
  height: 100vh;
  display: flex;
  flex-wrap: wrap;
  padding-top: 60px;
  img{
    width: 100%;
    height: auto;
    align-self: center;
  }
}
article{
  width: 60%;
  margin-left: 40%;
  padding-top: 70px;
  .body-article{
    padding: 20px;
    h1{
      font-size: 2rem;
      margin-bottom: 20px;
      font-weight: bold;
    }
    p{
      line-height: 20px;
      margin-bottom: 20px;
    }
    h2{
      font-size: 1.5rem;
      margin-bottom: 20px;
      font-weight: bold;
    }
  }
}
::-webkit-scrollbar { 
    display: none;
}
              
            
!

JS

              
                
              
            
!
999px

Console