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.


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.


                <div class="skew">
      <h1>Input GrowBox</h1>

          CSS GrowBox: <span id="span1" contenteditable="true">This is a GROWIE textbox see.......</span>

        JS GrowBox: <input id="txt" type="text" onkeypress=" = ((this.value.length >= 0 && this.value.length <= 3 ? 15 : this.value.length * 7)  ) + 'px';">


                #span1 {
-moz-appearance: textfield;
-webkit-appearance: textfield;
background-color: white;
background-color: -moz-field;
border: 0.5px solid #ABADB3;
border-bottom: 0.5px solid #E3E9EF;
border-right: 0.5px solid #E3E9EF;
font: -moz-field;
font: -webkit-small-control; 
padding-left: 5px;
white-space: nowrap;

.skew {
  height: 110%;
  width: 45%;
  padding: 20px;
  position: absolute;
  top: -5%;
  transform: skew(8deg);
  margin-left: 10%;

h1 {
  transform: skew(-24deg);
  margin-bottom: 7%;

section {
  border-top: solid 0.5px;
  border-left: solid 0.5px;
  padding-top: 10px;
  padding-left: 10px;
  margin: 3% 0 0 10%;   
  transform: skew(-24deg);
body {
background: #26558b; /* Old browsers */
background: -moz-linear-gradient(45deg,  #26558b 0%, #3a8bc2 16%, #4bb8f0 29%, #419ad6 41%, #3a84c3 49%, #6199c7 50%, #aac5de 83%, #cedbe9 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(45deg,  #26558b 0%,#3a8bc2 16%,#4bb8f0 29%,#419ad6 41%,#3a84c3 49%,#6199c7 50%,#aac5de 83%,#cedbe9 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(45deg,  #26558b 0%,#3a8bc2 16%,#4bb8f0 29%,#419ad6 41%,#3a84c3 49%,#6199c7 50%,#aac5de 83%,#cedbe9 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#26558b', endColorstr='#cedbe9',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */




                (function() {
  var s = document.getElementById("txt");
  var x1 = "This is a GROWIE textbox see.......";
  s.value = x1; = ((x1.length * 6)  ) + 'px';