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

              
                .table.center
  .monitor-wrapper.center
    .monitor.center
      p Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
              
            
!

CSS

              
                *
  margin: 0
  padding: 0

body
  background: #C2BEB2

.center
  position: absolute
  top: 0
  left: 0
  right: 0
  bottom: 0
  margin: auto

.table
  width: 790px
  height: 150px
  background-color: #d4e5ff
  .monitor-wrapper
    background: #050321
    width: 770px
    height: 130px
    box-shadow: 0px 2px 2px 2px rgba(0,0,0,0.30)
    .monitor
      width: 700px
      height: 100px
      background-color: #344151
      overflow: hidden
      white-space: nowrap
      box-shadow: inset 0px 5px 10px 2px rgba(0,0,0,0.3)
      p
        font-family: 'VT323', monospace
        font-size: 100px
        position: relative
        display: inline-block
        animation: move 20s infinite linear
        color: #EBB55F
      
@keyframes move
  from
    left: 800px
  to
    left: -4800px
              
            
!

JS

              
                
              
            
!
999px

Console