cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation


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.


<div class="scroll s3" style="height: 600px; width: 200px;">
  <div style="width: 400px; background: transparent;">
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc nibh lacus, adipiscing eu volutpat a, rhoncus nec odio. Nullam libero massa, sodales vitae dapibus vitae, tempor hendrerit odio. Aliquam erat volutpat. Sed ornare rhoncus felis a dignissim. Ut pharetra ligula in libero mollis adipiscing consequat nec turpis. Nunc imperdiet neque nec tortor lobortis accumsan. Aliquam erat volutpat. Nam elit diam, tempus sed rutrum quis, tristique eget velit. Maecenas non arcu magna. Donec consequat metus id orci tincidunt accumsan. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nulla accumsan sodales diam, in iaculis magna vestibulum eget. Cras eget leo velit, sit amet feugiat sapien. Praesent vitae mollis lorem. Vivamus sit amet velit in tortor mollis lobortis. Nullam ullamcorper sem id urna iaculis viverra in eu metus.

  Proin mauris mauris, scelerisque sed consectetur in, bibendum id nisi. Sed quis erat leo, quis molestie ante. Pellentesque laoreet mattis sapien, a venenatis erat semper vel. Sed ullamcorper dignissim iaculis. Curabitur turpis leo, adipiscing eu dapibus non, pulvinar ac diam. Nullam pellentesque porttitor ipsum, et convallis sapien mollis sed. Sed semper sodales erat id porttitor. Curabitur lacus felis, eleifend eget porta et, hendrerit quis justo. Donec felis odio, lacinia et porta at, posuere et sem.</p>


::-webkit-scrollbar {
  width: 6px;
::-webkit-scrollbar-track {
  background: rgba(0,0,0,.1); 
::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.2); 

.scroll {
  overflow: auto;
  width: 400px;
  height: 200px;
  margin: 20px;
  padding: 10px;

.scroll.s3 {
    linear-gradient(rgba(255,255,255,0), white 90%) 0 100%,
    linear-gradient(rgba(255,255,255,0), white 10%) 0 100%,
    -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgba(0,0,0,0)), to(rgba(0,0,0,.3))) 0 100%,
    -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgba(0,0,0,.3)), to( rgba(0,0,0,0)));

  background-repeat: no-repeat;
  background-color: white;
 background-size: 10px 100%, 10px 100%, 5px 100%, 5px 100%;
  background-attachment: local, local, scroll, scroll;

Loading ..................