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

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.

HTML

            
              <div class="wrapper">
  
  <div class="operation">
    <div class="oper-plus">+</div>
    <div class="oper-minus">-</div>
  </div>
  
  <div class="content">Lorem ipsum dolor sit amet, consectetur         adipisicing elit. Modi sint voluptates sapiente, natus ullam,       numquam porro suscipit itaque quod, possimus iusto vel dicta         consequatur ratione veritatis recusandae quas amet ex.</div>
  
  <div class="content">Lorem ipsum dolor sit amet, consectetur         adipisicing elit. Modi sint voluptates sapiente, natus ullam,       numquam porro suscipit itaque quod, possimus iusto vel dicta         consequatur ratione veritatis recusandae quas amet ex.</div>
  
</div>
            
          
!

CSS

            
              .wrapper
  overflow: auto
  text-align: center

.operation
  margin-top: 20px
  
[class*="oper-"]
  display: inline-block
  padding: 7px 15px
  background-color: #adadad
  border-radius: 5px
  cursor: pointer
  &:hover
    background-color: #909090
  
.content
  margin-top: 20px
  display: inline-block
  max-width: 700px
            
          
!

JS

            
              var scale = 1

$(".oper-plus").click(function(){
  scale += .2
  $("body").css({
    "-webkit-transform": "scale(" + scale + ")",
    "-moz-transform"   : "scale(" + scale + ")",
    "-ms-transform"    : "scale(" + scale + ")",
    "-o-transform"     : "scale(" + scale + ")",
    "transform"        : "scale(" + scale + ")"
  })
});

$(".oper-minus").click(function(){
  scale -= .2
  $("body").css({
    "-webkit-transform": "scale(" + scale + ")",
    "-moz-transform"   : "scale(" + scale + ")",
    "-ms-transform"    : "scale(" + scale + ")",
    "-o-transform"     : "scale(" + scale + ")",
    "transform"        : "scale(" + scale + ")"
  })
});
            
          
!
999px

Console