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. 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


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


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.


                <form action="">
    <label for="zip">US Zip Code</label>
    <input id="zip" name="zip" type="text" data-politespace data-grouplength="5," value="100011234" />
    <label for="cc">Credit Card</label>
    <input id="cc" name="cc" type="number" pattern="[0-9]*" data-politespace data-politespace-creditcard data-politespace-creditcard-maxlength value="4321432143214321" />
    <label for="phone">Phone</label>
    <input type="text" id="phone" data-politespace data-grouplength="3,3,4" />
    <label for="phone">Price</label>
    <input type="number" pattern="[0-9]*" data-politespace data-grouplength="3" data-delimiter="," data-reverse value="1234" />



                input {
  font-family: monospace;
label {
  display: block;
form > div {
  margin: 0 0 1rem 0;

/*! politespace - v0.1.20 - 2016-09-26
Politely add spaces to input values to increase readability (credit card numbers, phone numbers, etc).
 * Copyright (c) 2016 Filament Group (@filamentgroup)
 * MIT License */

.politespace-proxy {
	position: relative;
	overflow: hidden; /* clearfix for floating siblings */
	display: inline-block;
.politespace-proxy-val {
	display: none;
} > .politespace-proxy-val {
	display: block;
	position: absolute;
	left: 0;
	top: 0;
	pointer-events: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	z-index: 1;
/* Safari 9 has a weird top/bottom margin on form elements inside of politespace proxies */
/* This caused issues with proxy positioning.
.politespace-proxy > input {
	margin-top: 0;
	margin-bottom: 0;
}*/ input {
	-webkit-text-fill-color: transparent;
	color: transparent;
} input[type=number] {
	-moz-appearance: textfield;
} input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;