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 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 id="app"></div>


                body { background: #444444; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(199px, 1fr));
  grid-auto-flow: row;
  grid-gap: 2px;
  place-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  font-family: "Cabin", sans-serif;
  font-size: 18px;
  color: #FFFFFF;
  transition: all 400ms ease-in-out;

.grid li input[type=checkbox] { position: absolute; opacity: 0; cursor: pointer; }

.grid li label {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 48px;
  background: #3F51B5;
  background-image: linear-gradient( 135deg, #72EDF2 10%, #5151E5 100%);
  border-radius: 2px;
  font-size: .95em;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  transition: all 400ms ease-in-out;

.grid li label:hover,
.grid li input[type=checkbox]:checked ~ label {
  background: #FFEE58;
  color: #0D47A1;
  transition: all 400ms ease-in-out;


                function GridListComponent(options) {
  return ( <li><input type="checkbox" id={} /><label htmlFor={}>{options.tileInfo}</label></li> );

var app = (
    <ul className="grid">
      <GridListComponent id="grid-opt-1" tileInfo="First Name" />
      <GridListComponent id="grid-opt-2" tileInfo="Last Name" />
      <GridListComponent id="grid-opt-3" tileInfo="Date Created" />
      <GridListComponent id="grid-opt-4" tileInfo="Date Completed" />
      <GridListComponent id="grid-opt-5" tileInfo="Order Number" />
      <GridListComponent id="grid-opt-6" tileInfo="Item Number" />
      <GridListComponent id="grid-opt-7" tileInfo="Quantity" />
      <GridListComponent id="grid-opt-8" tileInfo="Price" />
      <GridListComponent id="grid-opt-9" tileInfo="Shipping Address" />
      <GridListComponent id="grid-opt-10" tileInfo="Item Total" />
      <GridListComponent id="grid-opt-11" tileInfo="Shipping Total" />
      <GridListComponent id="grid-opt-12" tileInfo="Subtotal" />
      <GridListComponent id="grid-opt-13" tileInfo="Tax" />
      <GridListComponent id="grid-opt-14" tileInfo="Discounts" />
      <GridListComponent id="grid-opt-15" tileInfo="Total" />
      <GridListComponent id="grid-opt-16" tileInfo="Payment Method" />
      <GridListComponent id="grid-opt-17" tileInfo="Payment Address" />
      <GridListComponent id="grid-opt-18" tileInfo="Comments" />
      <GridListComponent id="grid-opt-19" tileInfo="###" />
      <GridListComponent id="grid-opt-20" tileInfo="###" />
      <GridListComponent id="grid-opt-21" tileInfo="###" />
      <GridListComponent id="grid-opt-22" tileInfo="###" />
      <GridListComponent id="grid-opt-23" tileInfo="###" />
      <GridListComponent id="grid-opt-24" tileInfo="###" />
      <GridListComponent id="grid-opt-25" tileInfo="###" />
      <GridListComponent id="grid-opt-26" tileInfo="###" />
      <GridListComponent id="grid-opt-27" tileInfo="###" />

ReactDOM.render(app, document.querySelector('#app'));