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="input-wrapper">
    <form id="example" action="">
      <label for="employee-id">
        Your employee <abbr title="Identification">ID</abbr> number
        Can be found on your employee intranet profile. Example: <samp>a1234567-89</samp>.
        type="text" />


                // This technique was created by Thierry Koblentz 
// ( to make larger hit areas for
// interactive content:
.input-wrapper {
  position: relative;
  // Make the pseduo element stretch to the full width and
  // height of `.input-wrapper`
  & label::after {
    content: "";
    height: 100%;
    position: absolute;
     top: 0;
     left: 0;
    width: 100%;
  // Ensure the input isn't accidentally blocked by clicks 
  // on the pseudo element
  & input {
    position: relative;
    z-index: 2;

label {
  color: #4a4a4a;
  display: block;
  letter-spacing: 0.015em;
  padding-bottom: 0.25em;
  padding-left: 0.25em;

.input-hint {
  display: block;
  font-size: 80%;
  line-height: 1.4;
  margin-top: 0.15em;
  padding-left: 0.25em;

input {
  background: #ffffff;
  background: linear-gradient(0deg, #ffffff 93%, #e0e0e0 100%); 
  border: 1px solid #999999;
  border-radius: 0.3em;
  display: block;
  line-height: 1;
  padding: 0.75em 0.75em 0.6em 0.75em;
  width: 100%;

  // States
  &:active {
    border-color: darken(#999999, 15%);

  &:focus {
     0 0 0 2px #ffffff,
     0 0 0 5px #d33a2c;
    outline: none;

// Demo setup
*::after {
  box-sizing: border-box; 

html {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 20px;

body {
  background-color: #bc3428;
  color: #666666;
  margin: 5em;

main {
  background-color: #ffffff;
  border-radius: 0.5em;
  padding: 1em;
  position: absolute;
   top: 50%;
   left: 50%;
  transform: translate(-50%, -50%);
  width: 95vw;

  // Media Queries
  @media screen and (min-width: 35em) {
    padding: 2em;
    width: 75vw;

samp {
  background-color: #ededed;
  border: 2px solid #ededed;
  border-radius: 0.2em;
  margin-left: 0.15em;
  margin-right: 0.05em;
  padding-left: 0.25em;
  padding-right: 0.25em;
  speak: digits;
  word-break: break-word;

abbr[title] {
  text-decoration: none;