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="container">
  <p>Once your database table and models are defined, you may access the relationships via your models. For example, to access all of the photos for a staff member, we can simply use the photos dynamic property.</p>
  <p>down vote I ended up going with the slimscroll javascript plugin. It would be cool to have an all-css solution, but this plugin is done very well, and allows the focus-shown/hidden idea.</p>



                /** Webkit */
.container::-webkit-scrollbar {
  /** if you want to style your own scroll bar, this pseudo should be written */
  /** Part 1 */
  width: 6px;

.container::-webkit-scrollbar-button {
  /** Part 2 */
  display: none;

.container::-webkit-scrollbar-track {
  /** Part 3 */

.container::-webkit-scrollbar-track-piece {
  /** Part 4 */

.container::-webkit-scrollbar-thumb {
  /** Part 5 */
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 10px;

.container::-webkit-scrollbar-corner {
  /** Part 6 */

::-webkit-resizer {
  /** Part 7 */

.container {
  padding: 15px;
  height: 100px;
  width: 400px;
  margin: 20px auto 0;
  background-color: #a10000;
  overflow: auto;
  overflow-x: hidden;