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

              
                <h1>Example 8</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: #333333;
}

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://img1.picmix.com/output/stamp/normal/7/2/8/0/1200827_0898c.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