Pen Settings



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


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


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.


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.


                <div class="scroll">
  <div class="wrapper cf">
    <div class="content">
      <h1>Scroll Down!</h1>
      <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est.
        Mauris placerat eleifend leo.</p>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Atque vero, maxime nulla dolore iure voluptatem itaque. Nisi commodi ut consectetur beatae mollitia. Ab, maxime quisquam ipsa, quibusdam itaque et eius.</p>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Expedita, molestiae.</p>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Minus suscipit blanditiis delectus quos, soluta fuga voluptatem, facere inventore neque voluptate quaerat unde laboriosam molestiae repellat, sapiente accusamus cumque! Ipsam, illo!</p>
    <div class="sidebar">
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab maxime fugiat perspiciatis.</p>


                /* apply a natural box layout model to all elements, but allowing components to change */
html {
  box-sizing: border-box;
body {
  overflow: hidden;
*, *:before, *:after {
  box-sizing: inherit;
body {
  background-color: #196e76;
  line-height: 1.2;
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    contenteditable attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that are clearfixed.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
.cf:after {
    content: " "; /* 1 */
    display: table; /* 2 */

.cf:after {
    clear: both;

 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
.cf {
    *zoom: 1;
.scroll {
  height: 350px;
  overflow: scroll;
  background-color: #e7ebef;
  padding: 0 10px;
  width: 100%;
  max-width: 550px;
  margin-right: auto;
  margin-left: auto;
  margin-top: 20px;
  margin-bottom: 200px;
.wrapper {
  margin-top: 100px;
.content {
  padding: 0 15px;
  width: 330px;
.content h1 {
  margin-top: 0;
.content p,
.sidebar p{
  font-family: "BLOKKNeue-Regular";
.sidebar {
  padding: 20px;
  width: 170px;
  background-color: #434A54;
  color: #fff;
.sidebar h3 {
  margin: 0;
.sidebar {
  float: left;

/* The sticky */
.sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 15px;