Pen Settings



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


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="holder">
	<p>Some Title</p>
	<textarea cols="30" rows="1">This is a textarea
  Non eram nescius, Brute, cum, quae summis ingeniis exquisitaque doctrina philosophi Graeco sermone tractavissent, ea Latinis litteris mandaremus, fore ut hic noster labor in varias reprehensiones incurreret</textarea>
	<input type="text" value="Some text here" />


                body {
  background-color: #eeeeee;
.holder * {
  border: 0;
  border-bottom: solid silver 1px;

.holder {
  width: 20em;
  height: 20em;
  min-height: 200px;
  min-width: 200px;
  margin: 50px auto 0;
  padding: 20px;
  box-shadow: 0px 0px 24px rgba(0, 0, 0, .3);
  background-color: white;
  /* the magic happens hereunder*/
  resize: both;
  display: flex;
  flex-direction: column;
  overflow: hidden;

.holder textarea {
  flex: 1;
  resize: none;  
.holder textarea,
.holder input {
  padding: 5px;
  background: white no-repeat;
  background-image: linear-gradient(to bottom, #2196F3, #2196F3);
  background-position: 0 100%, 100% 100%;
  background-size: 0 2px, 100% 1px;
  transition: background-size 0.3s cubic-bezier(0.64, 0.09, 0.08, 1);

.holder textarea:focus,
.holder input:focus {
  background-size: 100% 2px, 100% 1px;



See for details and explications.

See my other pens for the blue "focus" effet on the fields.