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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                .container
  p.text-center
    span 吾輩は猫である。
    span 名前はまだ無い。
    span どこで生れたかとんと
    span 見当がつかぬ。
    span 何でも薄暗いじめじめした所で
    span ニャーニャー泣いていた事だけは
    span 記憶している。
  p.text-center
    span 吾輩はここで始めて
    span 人間というものを見た。
    br
    span しかもあとで聞くと
    span それは書生という人間中で
    span 一番獰悪な種族であったそうだ。
    span この書生というのは
    span 時々我々を捕えて
    span 煮て食うという話である。
    br
    span しかしその当時は
    span 何という考もなかったから
    span 別段恐しいとも思わなかった。
              
            
!

CSS

              
                .container{
  max-width: 800px;
  margin: 0 auto;
}
.text-center{
  text-align: center;  
}
.text-center span{
  display: inline-block;
  white-space: nowrap;
}
              
            
!

JS

              
                
              
            
!
999px

Console