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

              
                <h1>Example 9</h1>

<p>

  Lorem ipsum, dolor sit amet consectetur adipisicing elit. Consectetur modi
  soluta delectus tempore incidunt rem, magnam accusantium molestias dicta
  earum repellat repudiandae veniam assumenda error sapiente, voluptatum
  eligendi, nemo vero! Lorem ipsum, dolor sit amet consectetur adipisicing
  elit. Consectetur modi soluta delectus tempore incidunt rem, magnam
  accusantium molestias dicta earum repellat repudiandae veniam assumenda
  error sapiente, voluptatum eligendi, nemo vero! Lorem ipsum, dolor sit amet
  consectetur adipisicing elit. Consectetur modi soluta delectus tempore
  incidunt rem, magnam accusantium molestias dicta earum repellat repudiandae
  veniam assumenda error sapiente, voluptatum eligendi, nemo vero! Lorem
  ipsum, dolor sit amet consectetur adipisicing elit. Consectetur modi soluta
  delectus tempore incidunt rem, magnam accusantium molestias dicta earum
  repellat repudiandae veniam assumenda error sapiente, voluptatum eligendi,
  nemo vero! Lorem ipsum, dolor sit amet consectetur adipisicing elit.
  Consectetur modi soluta delectus tempore incidunt rem, magnam accusantium
  molestias dicta earum repellat repudiandae veniam assumenda error sapiente,
  voluptatum eligendi, nemo vero! Lorem ipsum, dolor sit amet consectetur
  adipisicing elit. Consectetur modi soluta delectus tempore incidunt rem,
  magnam accusantium molestias dicta earum repellat repudiandae veniam
  assumenda error sapiente, voluptatum eligendi, nemo vero! Lorem ipsum, dolor
  sit amet consectetur adipisicing elit. Consectetur modi soluta delectus
  tempore incidunt rem, magnam accusantium molestias dicta earum repellat
  repudiandae veniam assumenda error sapiente, voluptatum eligendi, nemo vero!
  Lorem ipsum, dolor sit amet consectetur adipisicing elit. Consectetur modi
  soluta delectus tempore incidunt rem, magnam accusantium molestias dicta
  earum repellat repudiandae veniam assumenda error sapiente, voluptatum
  eligendi, nemo vero! Lorem ipsum, dolor sit amet consectetur adipisicing
  elit. Consectetur modi soluta delectus tempore incidunt rem, magnam
  accusantium molestias dicta earum repellat repudiandae veniam assumenda
  error sapiente, voluptatum eligendi, nemo vero! Lorem ipsum, dolor sit amet
  consectetur adipisicing elit. Consectetur modi soluta delectus tempore
  incidunt rem, magnam accusantium molestias dicta earum repellat repudiandae
  veniam assumenda error sapiente, voluptatum eligendi, nemo vero! error
  sapiente, voluptatum eligendi, nemo vero! Lorem ipsum, dolor sit amet
  consectetur adipisicing elit. Consectetur modi soluta delectus tempore
  incidunt rem, magnam accusantium molestias dicta earum repellat repudiandae
  veniam assumenda error sapiente, voluptatum eligendi, nemo vero! error
  sapiente, voluptatum eligendi, nemo vero! Lorem ipsum, dolor sit amet
  consectetur adipisicing elit. Consectetur modi soluta delectus tempore
  incidunt rem, magnam accusantium molestias dicta earum repellat repudiandae
  veniam assumenda error sapiente, voluptatum eligendi, nemo vero! error
  sapiente, voluptatum eligendi, nemo vero! Lorem ipsum, dolor sit amet
  consectetur adipisicing elit. Consectetur modi soluta delectus tempore
  incidunt rem, magnam accusantium molestias dicta earum repellat repudiandae
  veniam assumenda error sapiente, voluptatum eligendi, nemo vero! error
  sapiente, voluptatum eligendi, nemo vero! Lorem ipsum, dolor sit amet
  consectetur adipisicing elit. Consectetur modi soluta delectus tempore
  incidunt rem, magnam accusantium molestias dicta earum repellat repudiandae
  veniam assumenda error sapiente, voluptatum eligendi, nemo vero! error
  sapiente, voluptatum eligendi, nemo vero! Lorem ipsum, dolor sit amet
  consectetur adipisicing elit. Consectetur modi soluta delectus tempore
  incidunt rem, magnam accusantium molestias dicta earum repellat repudiandae
  veniam assumenda error sapiente, voluptatum eligendi, nemo vero! error
  sapiente, voluptatum eligendi, nemo vero! Lorem ipsum, dolor sit amet
  consectetur adipisicing elit. Consectetur modi soluta delectus tempore
  incidunt rem, magnam accusantium molestias dicta earum repellat repudiandae
  veniam assumenda error sapiente, voluptatum eligendi, nemo vero! error
  sapiente, voluptatum eligendi, nemo vero! Lorem ipsum, dolor sit amet
  consectetur adipisicing elit. Consectetur modi soluta delectus tempore
  incidunt rem, magnam accusantium molestias dicta earum repellat repudiandae
  veniam assumenda error sapiente, voluptatum eligendi, nemo vero! error
  sapiente, voluptatum eligendi, nemo vero! Lorem ipsum, dolor sit amet
  consectetur adipisicing elit. Consectetur modi soluta delectus tempore
  incidunt rem, magnam accusantium molestias dicta earum repellat repudiandae
  veniam assumenda error sapiente, voluptatum eligendi, nemo vero!
</p>
              
            
!

CSS

              
                html {
  background: #333333;
  height: 50%;
  overflow-y: hidden;
}
body {
  height: 100%;
  background: whitesmoke;
  overflow-y: scroll;
  width: 80%;
  max-width: 600px;
  margin: 0 auto;
  padding: 3em;
  font: 100%/1.4 serif;
  border: 1px solid rgba(0, 0, 0, 0.25);
}

h1 {
  color: tomato;
}

body::-webkit-scrollbar {
  width: 3em;
}

body::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

body::-webkit-scrollbar-thumb {
  background-image: url("https://i.pinimg.com/originals/b5/2e/1b/b52e1bff41122d66aac6133d5718b6fb.gif"),
    linear-gradient(100deg, transparent, transparent);
  background-position: center bottom, center -40px;
  background-repeat: no-repeat, no-repeat;
  background-size: contain, contain;
}

              
            
!

JS

              
                
              
            
!
999px

Console