Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

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.

HTML

            
              <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>
            
          
!

CSS

            
              @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%;
}
    

            
          
!

JS

            
              
            
          
!
999px

Console