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. 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

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

              
                <div class="row">
<div class="example col-xs-12 col-md-6 speed">
  <p class="meta">John is a <span class="sc">UX/UI</span> designer. He moved to London, <span class="sc">UK</span> in 1996. He's been a designer for 16 years, freelancing for 9 years while he studied <span class="sc">HCI</span> (human-computer interaction) design, and the rest as an inhouse full-time designer for various companies. One of which was the famous <span class="sc">GNB</span>&nbsp;bank.</p>
</div>
<div class="example col-xs-12 col-md-6 legibility">
  <p class="georgia">John is a UX/UI designer. He moved to London, UK in 1996. He's been a designer for 16 years, freelancing for 9 years while he studied HCI (human-computer interaction) design, and the rest as an inhouse full-time designer for various companies. One of which was the famous GNB bank.</p>
</div>
  <p class="instructions">__ <br><br>The paragraph on the left (set in Meta) has the small caps and old-style figures enabled, the one on the right (set in Georgia) doesn’t. </p>
</div>

<footer><h1>BETTER WEB TYPOGRAPHY FOR <span>A&nbsp;BETTER&nbsp;WEB</span></h1><p>A book by Matej Latin—Get yours at <a href="https://betterwebtype.com/book" target="_blank">betterwebtype.com</a></p></footer>
              
            
!

CSS

              
                /* We now load all the styles that we need */
@import url('https://fonts.googleapis.com/css?family=Libre+Baskerville:400,400i');

body {
  padding: 2% 5%;
}

.example p {
  max-width: 25em;
  line-height: 1.5;
  font-size: 18px;
}

.meta {
  font-family: "ff-meta-serif-web-pro";  
}

.georgia {
  font-family: Georgia, serif;
}

.sc {
  font-variant-caps: all-small-caps;
  -moz-font-feature-settings: "c2sc", "smcp";
  -webkit-font-feature-settings: "c2sc", "smcp";
  font-feature-settings: "c2sc", "smcp";
}

/* End of example */

.instructions {
  font-family: sans-serif;
  font-size: 18px!important;
  max-width: 25em;
}

footer {
  margin-top: 4em;
}

@media screen and (min-width: 48em){
  footer {
    margin-top: 0;
    position: fixed;
    bottom: 4%;
  }
}

footer h1 {
  font-size: 24px;
  font-family: "acumin-pro-extra-condensed",sans-serif;
  margin-bottom: 0;
}

footer span {
  color: #F15D64;
}

footer p {
  font-size: 16px;
  font-family: Georgia, serif;
}
              
            
!

JS

              
                
              
            
!
999px

Console