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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

            
              <body>
    <main>
      <header><h1>This is a header</h1></header>
        <article>
            <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>
            </ul>
        </article>
        <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>
    </main>
</body>
            
          
!
            
              @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%;
}
    

            
          
!
999px
Loading ..................

Console