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

              
                <section>
  <h3>Scroll estándar</h3>
  <p>Suspendisse molestie vitae enim id ultricies. Sed aliquam sapien eu nulla sodales, sit amet lobortis lorem pretium. Aenean id metus ligula. Nunc sed est laoreet, porta erat ut, sagittis diam. Fusce condimentum leo vel turpis dignissim auctor. Proin vitae libero fermentum neque convallis lacinia in non ligula. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Morbi in neque ut diam congue suscipit iaculis vel mi. Vestibulum ullamcorper ultrices ex, sit amet finibus sapien ullamcorper et. Phasellus varius quam nec quam sollicitudin, vitae sagittis orci interdum. Curabitur odio nisl, mattis vel maximus eu, malesuada eu metus.</p>
</section>
<section class="gutter">
  <h3>Scroll con gutter</h3>
  <p>Suspendisse molestie vitae enim id ultricies. Sed aliquam sapien eu nulla sodales, sit amet lobortis lorem pretium. Aenean id metus ligula. Nunc sed est laoreet, porta erat ut, sagittis diam. Fusce condimentum leo vel turpis dignissim auctor. Proin vitae libero fermentum neque convallis lacinia in non ligula. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Morbi in neque ut diam congue suscipit iaculis vel mi. Vestibulum ullamcorper ultrices ex, sit amet finibus sapien ullamcorper et. Phasellus varius quam nec quam sollicitudin, vitae sagittis orci interdum. Curabitur odio nisl, mattis vel maximus eu, malesuada eu metus.
</p>
</section>
              
            
!

CSS

              
                html, body {
  overflow: hidden;
  margin: 0;
  line-height: 0;
  white-space: nowrap;
}
section {
  display: inline-block;
  overflow: auto;
  width: max(240px, 50% - 20px);
  height: 100vh;
  margin: auto;
  padding: 8px;
  background: #eee;
  line-height: initial;
  white-space: normal;
  
  /*Firefox*/
  scrollbar-color: #09C transparent;
  scrollbar-width: thin;
}
/*Webkit*/
section::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
section::-webkit-scrollbar-track {
  background-color: transparent;
}
section::-webkit-scrollbar-thumb {
  background-color: #09C;
}
.gutter {
  scrollbar-gutter: stable both-edges;
}
p, h3 {
  margin: 8px;
  text-align: justify;
}
              
            
!

JS

              
                
              
            
!
999px

Console