cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

      <header><h1>This is a header</h1></header>
            <ul class="gallery">
                <li><img src="http://lorempixel.com/400/300/cats/1"/></li>
                <li><img src="http://lorempixel.com/400/300/cats/2"/></li>
                <li><img src="http://lorempixel.com/400/300/cats/3"/></li>
                <li><img src="http://lorempixel.com/400/300/cats/4"/></li>
                <li><img src="http://lorempixel.com/400/300/cats/5"/></li>
                <li><img src="http://lorempixel.com/400/300/cats/6"/></li>
                <li><img src="http://lorempixel.com/400/300/cats/7"/></li>
                <li><img src="http://lorempixel.com/400/300/cats/8"/></li>
                <li><img src="http://lorempixel.com/400/300/cats/9"/></li>
                <li><img src="http://lorempixel.com/400/300/cats/10"/></li>
                <li><img src="http://lorempixel.com/400/300/cats/1"/></li>
                <li><img src="http://lorempixel.com/400/300/cats/2"/></li>
        <aside><p>Lorem ipsum dolor sit amet, error numquam pertinax qui ea, sit veri atqui periculis ex. Cu his paulo ubique, at sed quaeque eripuit appareat, et pro diceret fierent. Ei pri feugiat aliquando, vel altera platonem ea. Per harum viris id.</p>
<p>Possit nonumes in eum. Ex pro dico zril vituperata. Vis ferri utinam an, cu labitur instructior pro. Vix ut dolores vivendum periculis, cu mel alienum recteque. Cu enim sententiae persequeris vim, vitae tation ex sed. Ut indoctum repudiare sit, duis tollit dignissim in nam, ad enim ludus nec.<p></aside>
      <footer><h2>This is a footer</h2></footer>
              @import "compass/css3";
@import "susy";

/* Import Compass clearfix */
@import "compass/utilities/general/clearfix";

$color1: #FFFFFF;
$color2: #FF4CA5;
$color3: #ff007f;
$color4: #7F2653;
$color5: #CC0066;
$color6: #031f38;

$susy: (
    columns: 12,
    container: 1200px,
    gutters: 1/4,
    global-box-sizing: border-box,
    debug: (image: hide)

@include border-box-sizing;

* {
  font-family: "Helvetica", sans-serif;

main {
    @include container;
    background-color: $color1;

header {
    margin-bottom: gutter();
    padding: span(1 of 12);
    background-color: $color2;

article {
    @include span(8 of 12);
    margin-bottom: gutter();
    height: auto;
    background-color: $color3;

aside {
    @include span(4 of 12 last);
    margin-bottom: gutter();
    padding: gutter();
    background-color: $color5;

footer {
    clear: both;
    padding: span(1 of 12);
    background-color: $color4;

/* Gallery */

ul.gallery {
    @include clearfix;
    padding: span(1 of 8);
    background-color: $color3;
    list-style: none;
    li {
        @include gallery(2 of 6);
        margin-bottom: gutter(6);
        background-color: $color4;
        &:nth-last-child(-n+3) {
            margin-bottom: 0;

img {
  display: block;
  width: 100%;

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