Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

Auto Save

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.

HTML

              
                <h1>You know what to do: resize your viewport!</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. In non metus feugiat, fringilla arcu non, hendrerit magna. Duis eu ex sem. Aliquam erat volutpat. Maecenas pellentesque dui eu odio vehicula condimentum. In odio nisi, placerat sed lectus eget, interdum elementum felis. Aenean id pretium orci. Suspendisse gravida nulla eros, eu sodales diam laoreet ornare. Proin purus quam, hendrerit eu ipsum eget, gravida tincidunt justo. Praesent facilisis vel felis vel imperdiet. Phasellus dapibus magna a enim fermentum, et luctus libero mollis. Suspendisse ac varius ante, nec egestas orci. Sed sapien urna, feugiat eget congue in, varius elementum tortor.</p>
<div class="fukol">  
  <div class="fukol-grid">
    <div>1</div>
    <div>2</div>
    <div>3</div>
    <div>4</div>
    <div>5</div>
    <div>6</div>
    <div>7</div>
    <div>8</div>
    <div>9</div>
    <div>10</div>
    <div>11</div>
    <div>12</div>
  </div>
</div>
<p>Sed sem tortor, porttitor ac ultrices nec, sagittis at libero. Nulla consequat gravida erat condimentum porttitor. Nunc euismod placerat nisl, sit amet tincidunt quam rutrum non. Quisque tellus nisl, pellentesque lobortis tempus non, dictum eget magna. Duis cursus ipsum at orci condimentum faucibus. Donec placerat semper nibh eget fringilla. Mauris nisl odio, scelerisque vel metus non, ullamcorper vestibulum ipsum. Ut purus lectus, eleifend quis viverra vitae, lobortis euismod sem. Aliquam erat volutpat.</p>
              
            
!

CSS

              
                /* The Fukol CSS 'grid system' */

.fukol-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -0.5em;
}

.fukol-grid > * {
  flex: 1 0 10em;
  margin: 0.5em;
}

.fukol-grid > *:first-child {
  flex-basis: calc(100% - 1em);
}

/* Styles just for this demo */

* {
  box-sizing: border-box; /* should be covered by reset */
}

body {
  padding: 1em;
  margin: 0 auto;
  max-width: 50em;
  line-height: 1.5;
}

body * + * {
  margin-top: 1.5em;
}

.fukol-grid > * {
  background: #222;
  padding: 1em;
  color: #fff;
  text-align: center;
}
              
            
!

JS

              
                /* haha NO */
              
            
!
999px

Console