Pen Settings



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


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


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.


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.



  <title>Simple Box Resizing - jquery-resizable</title>
  <meta charset="utf-8" />

  <div class="page-container">
            jquery-resizable - A simple box resize operation.
    <hr />
      This simple example simply resizes a single box using a sizing grip at the bottom of the window. Note that .resizable() does not handle of the UI aspects - it only manages the actual resizing operation itself. You're responsible for creating placing the
      sizing handle where it makes sense for your UI.

    <div class="box">
      <div class="boxheader">Header</div>
      <div class="boxbody">
        Resize me
      <div class="win-size-grip"></div>

    <hr />
      To apply resizing use the .resizable plugin and specify the resizable container and a sizing handle that initiates resizing:
    <pre> $(".box").resizable({ handleSelector: ".win-size-grip"});</pre>

      Note that you can also use the initial container for resizing by reapplying the initial selector but usually provides





 body {
   height: 100%;
   font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
   padding: 0;
   margin: 0;  
 .page-container {
   margin: 20px;
 .box {
   margin: 40px;
   box-shadow: 5px 5px 10px #535353;
   border: 1px silver;
   border-radius: 4px;
   position: relative;
   width: 500px;
   height: 400px;
   overflow: hidden;
   /* limit size with min/max-width/height*/
   min-height: 100px;
   min-width: 200px;
   max-width: 999px;
   max-height: 800px;
 .boxheader {
   background: #535353;
   color: white;
   padding: 5px;
 .boxbody {
   font-size: 24pt;
   padding: 20px;
 .win-size-grip {
   position: absolute;
   width: 16px;
   height: 16px;
   padding: 4px;
   bottom: 0;
   right: 0;
   cursor: nwse-resize;
   background: url( no-repeat;
 pre {
   margin: 20px;
   padding: 10px;
   background: #eee;
   border: 1px solid silver;
   border-radius: 4px;


  handleSelector: ".win-size-grip"

//    onDragStart: function (e, $el, opt) {
//        $el.css("cursor", "nwse-resize");
//    },
//    onDragStop: function (e, $el, opt) {
//        $el.css("cursor", "");
//    }