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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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>
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam non maximus purus, sed pharetra elit. Donec egestas nisl sed gravida tempus. Aenean eget justo aliquet felis faucibus fermentum. Fusce nec pharetra eros, eu facilisis enim. Pellentesque egestas lobortis erat, vel molestie tellus porta eu. Maecenas euismod lacinia placerat. Quisque faucibus diam arcu, sed gravida ipsum imperdiet id. Nunc tincidunt, metus sed sagittis pellentesque, dui libero gravida elit, sed commodo dolor lacus in elit.</p>
  <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 {
  margin: 0;
}
section {
  box-sizing: border-box;
  overflow: auto;
  width:240px;
  height: 100vh;
  margin: auto;
  padding: 6px;
  border: solid 1px #999;
  background: #f6f6f6;
  resize: both;
}
p {
  margin: 6px;
}
/*Webkit*/
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar:window-inactive {
  display: none;
}
::-webkit-scrollbar:corner-present  {
 }
::-webkit-scrollbar-track-piece {
  border-radius: 2px;
  background-color: #369;
  background-clip: content-box;
  border-radius: 6px;
  border: solid 4px transparent;
}
::-webkit-scrollbar-track-piece:decrement {
  background: orange;
  background-clip: content-box;
  border: solid 4px transparent;
}
section::-webkit-scrollbar-button:vertical:start:decrement {
  background: transparent url(https://elcssar.com/ejemplos/arrow_up.png) no-repeat center center;
}
section::-webkit-scrollbar-button:vertical:end:decrement {
  background: transparent url(https://elcssar.com/ejemplos/arrow_up.png) no-repeat center center;
}
section::-webkit-scrollbar-button:vertical:end:increment {
  background: transparent url(https://elcssar.com/ejemplos/arrow_down.png) no-repeat center center;
}
section::-webkit-scrollbar-button:horizontal:decrement {
  background: transparent url(https://elcssar.com/ejemplos/arrow_left.png) no-repeat center center;
}
::-webkit-scrollbar-button:horizontal:increment {
  background: transparent url(https://elcssar.com/ejemplos/arrow_right.png) no-repeat center center;
}

::-webkit-scrollbar-thumb  {
  height: 10px;
  width: 4px;
  background-color: #09C;
  border-radius: 6px;
  box-shadow: 0 3px 6px -2px rgba(51,0,51,0.5);
}
::-webkit-scrollbar-corner {
  background: transparent ;
}
::-webkit-resizer {
  background: transparent url(https://elcssar.com/ejemplos/expandIcon.png) no-repeat -1px -1px;
}
::-webkit-scrollbar-track-piece:no-button {
  background-color: red;
}
              
            
!

JS

              
                
              
            
!
999px

Console