Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <article>
    <h3>Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</h3>
  <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus.</p>
  <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
  <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
</article>
              
            
!

CSS

              
                @import compass

@import url(https://fonts.googleapis.com/css?family=Mako|Gentium+Basic)

$bg: #EAEBE1
$lines: #d5c999

article
  width: 700px
  margin: 20px auto
  position: relative
  background-color: $bg
  background-size: 1px 28px
  line-height: 28px
  vertical-align: 2px
  padding: 12px 10px 6px 50px
  background-clip: border-box
  background-image: repeating-linear-gradient(transparent, transparent 27px, $lines 27px, $lines 100%)
  background-position: 0 6px
  &:before, &:after
    content: ''
    position: absolute
    top: 0
  &:after
    margin-left: -10px
    width: 0
    height: 100%
    border-left: 3px double $lines
  &:before
    width: 100%
    height: 6px
    left: 0
    background-color: $bg

p
  margin: 0
  font-size: 13px
  font-family: 'Mako', serif
  text-align: justify
h3
  font-weight: 300
  text-align: left
  text-decoration: none
  font-size: 23px
  padding-bottom: 6px
  margin: -5px 0 -3px 0
  letter-spacing: 1px
  font-family: 'Gentium Basic', serif
body
  background-color: #f5f5f5
              
            
!

JS

              
                
              
            
!
999px

Console