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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

    <label><input type="checkbox" class="setting-meta" checked> Toggle region outlines</label>
<h1>CSS Regions Example</h1>
<h2>Try resizing the window to see the beautiful re-flow</h2>
<h3>Read <a target="_top" href="http://fonicmonkey.net/2013/09/09/css-regions-and-why-youll-be-using-them-before-you-know-it">the blog post</a> for a walk-through, especially if you see any empty boxes below!</h3>

<div class="region metadata" id="region1">

<div class="region metadata" id="region2">

<div class="region metadata" id="region3">

<div class="region metadata" id="region4">

<div class="content">
<em>First paragraph</em>: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec consequat laoreet eros a tincidunt. Cras augue massa, egestas ac nulla nec, mollis posuere velit. Pellentesque rhoncus urna nec metus iaculis, quis vehicula nisi pulvinar. Phasellus sed egestas felis. Vestibulum magna ante, condimentum sit amet feugiat nec, convallis sit amet quam. Quisque posuere lorem nisl, non luctus risus volutpat a. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aenean iaculis ligula non vestibulum venenatis. Vestibulum dapibus adipiscing mauris lacinia mollis. Nulla sit amet tempor sem. Praesent nec fermentum felis.

    <em>Second paragraph</em>: Quisque vitae elit ut libero viverra condimentum. Suspendisse dignissim lorem interdum magna molestie, ut adipiscing diam bibendum. Phasellus felis odio, interdum quis purus sit amet, commodo dapibus risus. Nam viverra et arcu ut feugiat. Aliquam eu dui a urna laoreet elementum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse potenti. Aliquam erat volutpat. Curabitur nec felis vitae nibh tincidunt egestas. Nam faucibus ligula pellentesque lacus interdum porttitor. Duis auctor, orci adipiscing blandit posuere, mauris orci porttitor odio, id tincidunt risus dolor id velit.

    <em>Third paragraph</em>: Vestibulum ut lacus urna. Curabitur vitae mauris in erat posuere volutpat. Phasellus ipsum risus, bibendum consectetur tincidunt at, tristique sit amet odio. Interdum et malesuada fames ac ante ipsum primis in faucibus. Mauris a diam quis magna placerat consectetur ac eu tellus. Cras interdum non sem eu commodo. Ut feugiat ipsum a lectus feugiat condimentum.

    <em>Fourth paragraph</em>: Morbi faucibus semper pretium. Suspendisse nec posuere erat, at ullamcorper metus. Nam vitae congue nulla. Duis tempor nunc arcu. Pellentesque sed eleifend neque. Nullam pretium orci vel mauris ullamcorper ornare. Vivamus in imperdiet metus, a vestibulum turpis. Sed bibendum lacinia massa, a gravida dui cursus eget. Praesent nec ultricies velit, at egestas felis. Etiam accumsan rutrum sapien, vitae molestie enim lobortis vitae. Nunc sodales, lectus sed lobortis luctus, massa orci luctus elit, id adipiscing magna risus vitae mauris. Integer vitae ante hendrerit, placerat eros in, vehicula tortor. Vestibulum vulputate metus elit, at dictum nulla commodo ac. Vestibulum purus elit, interdum sit amet arcu vel, dignissim consectetur sem. Etiam suscipit fringilla ligula vitae congue.

    <em>Fifth paragraph</em>: Nullam imperdiet tempor orci. Vivamus a nibh tellus. In eget interdum mi. Ut pellentesque, neque ut pretium semper, urna urna venenatis lorem, ac eleifend urna nisl sit amet augue. Curabitur eros lorem, auctor vulputate tellus sit amet, consectetur commodo nunc. Donec vitae bibendum tellus, eu semper neque. Curabitur ullamcorper, tortor eu lacinia rhoncus, nulla sem mattis massa, dignissim rutrum ante felis mattis libero. Duis non tincidunt neque, id posuere diam. Donec eleifend vel odio ut malesuada. Pellentesque vel sodales neque. Integer consectetur eget orci et feugiat. Pellentesque congue metus sit amet tortor egestas, ac posuere lorem laoreet. Etiam urna nulla, auctor vulputate posuere non, rhoncus et tellus.

    <em>Sixth paragraph</em>: Morbi id sapien quis neque facilisis pretium vel nec lectus. Nam eu nulla id ligula convallis dapibus porttitor in magna. Duis sodales imperdiet lacus et ornare. Pellentesque laoreet dui ante, et aliquet dui porta a. Aenean id dictum diam. Donec mauris enim, mattis id tempor non, rhoncus tristique sem. Cras eleifend nulla vitae nunc rhoncus sagittis vitae in felis. Praesent facilisis accumsan nulla, eu tristique ipsum mattis nec. Aliquam fermentum lacus id magna vestibulum hendrerit. Vestibulum ipsum lectus, eleifend vel tortor vel, venenatis semper turpis. Curabitur in eros id sem dignissim semper nec a risus. Duis scelerisque consequat pulvinar. Aliquam eu tristique ante. Nullam eros tortor, venenatis non vehicula vel, eleifend non nisi. Aenean orci nunc, aliquam et enim vitae, fringilla condimentum ligula. Sed lobortis lectus eu ligula facilisis, a porta nibh feugiat.
<br clear="both"/>

              @import "compass/css3";

body {
    font-family: Optima, Helvetica, Arial, Sans Serif;

.region {
    box-sizing: border-box;
    float: left;
    width: 31%;
    padding: 10px;
    margin: 5px;
    -webkit-flow-from: myipsum;
    flow-from: myipsum;
    max-height: 200px;
    overflow: hidden;
    position: relative;
    border: 1px solid white;

.metadata {
    border: 1px solid green;

.metadata::after {
    content: ".region";
    background-color: blue;
    color: white;
    padding: 2px;
    position: absolute;
    right: 0;
    top: 0;
    opacity: .3;
    font-size: 10px;

#region4 {
    width: calc(93% + 20px);
    max-height: inherit;

.content {
    -webkit-flow-into: myipsum;
    flow-into: myipsum;

em {
    background-color: #f9f988;

h1 {
    margin: 2px 0;

h2 {
    margin: 5px 0;
    font-size: 16px;
form {
    float: right;
    margin: 1em;
              $('.setting-meta').bind('change', function () {
    $('.region').toggleClass('metadata', $(this)[0].checked);

🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.