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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import or require. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              .g.mb1
  .g-b.g-b--1of4
    %p 1.0
    %p.lh1 Yup, more placeholder text. I’m not a huge fan of standard lorem ipsum mostly because it all looks so boring. I know that’s kind of the point, but it just feels so tired. Plus, it’s pretty hard to test out readability when the text is in Latin.
    %p.mb0 Too tight
  .g-b.g-b--1of4
    %p 1.25
    %p.lh125 Yup, more placeholder text. I’m not a huge fan of standard lorem ipsum mostly because it all looks so boring. I know that’s kind of the point, but it just feels so tired. Plus, it’s pretty hard to test out readability when the text is in Latin.
    %p.mb0 About right
  .g-b.g-b--1of4
    %p 1.5
    %p.lh15 Yup, more placeholder text. I’m not a huge fan of standard lorem ipsum mostly because it all looks so boring. I know that’s kind of the point, but it just feels so tired. Plus, it’s pretty hard to test out readability when the text is in Latin.
    %p.mb0 A little loose
  .g-b.g-b--1of4
    %p 1.75
    %p.lh175 Yup, more placeholder text. I’m not a huge fan of standard lorem ipsum mostly because it all looks so boring. I know that’s kind of the point, but it just feels so tired. Plus, it’s pretty hard to test out readability when the text is in Latin.
    %p.mb0 Too loose

.g
  .g-b.g-b--2of4
    %p 1.3
    %p.lh3 Yup, more placeholder text. I’m not a huge fan of standard lorem ipsum mostly because it all looks so boring. I know that’s kind of the point, but it just feels so tired. Plus, it’s pretty hard to test out readability when the text is in Latin.
    %p.mb0 A little tight
  .g-b.g-b--2of4
    %p 1.4
    %p.lh14 Yup, more placeholder text. I’m not a huge fan of standard lorem ipsum mostly because it all looks so boring. I know that’s kind of the point, but it just feels so tired. Plus, it’s pretty hard to test out readability when the text is in Latin.
    %p.mb0 About right
            
          
!
            
              @import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro')

html
  background: #f7f7f6
  font-family: 'Source Sans Pro', 'Open Sans', sans-serif
  padding: 37.5px

body
  margin-left: auto
  margin-right: auto
  width: 1000px

p
  margin-bottom: 20px
  margin-top: 0

.g
  display: flex
  margin-left: -40px

.g-b
  box-sizing: border-box
  padding-left: 40px

.g-b--2of4
  width: 50%

.g-b--1of4
  width: 25%
  
.mb0
  margin-bottom: 0
.mb1
  margin-bottom: 20px

.lh1
  line-height: 1
.lh125
  line-height: 1.25
.lh13
  line-height: 1.3
.lh14
  line-height: 1.4
.lh15
  line-height: 1.5
.lh175
  line-height: 1.75
            
          
!
999px

Console