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.


                <p><span>Small caps are short cap­i­tal let­ters designed to blend with low­er­case text. They’re usu­ally slightly taller than low­er­case let­ters.</span> Small-cap for­mat­ting works by scal­ing down reg­u­lar caps. But com­pared to the other char­ac­ters in the font, the fake small caps that result are too tall, and their ver­ti­cal strokes are too light. The color and height of real small caps have been cal­i­brated to blend well with the nor­mal upper­case and low­er­case let­ters.</p>
<p class="small">— Matthew Butterick, <a href="">Typography for Lawyers</a></p>

<button>Turn small caps</button>


                p {
  font-size: 20px;
  margin-bottom: 10px;
  padding-left: 10px;
  font-style: normal;

body {
  background-color: #ddd;
  font-family: "chaparral-pro";
  margin: 0;
  padding: 0;

span {
  transition: color .5s linear;

.smcp {
  span {
    font-feature-settings: "smcp" 1;
  span {
    color: lighten(red, 10);

.small {
  font-size: 15px;

a {
  color: #888;
  text-decoration: none;

button {
  display: block;
  cursor: pointer;
  margin-left: 10px;
  &:after {
    content: " on";
  &.on:after {
    content: " off";


                var btn = document.querySelector("button"),
    body = document.documentElement,
    activeClass = "smcp";

btn.addEventListener("click", function(e){