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

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.

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

              
                <section class="container">
    <article>
        <h3>Appreciation</h3>
        <h1>Nothing Compares 2 Him</h1>


        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse in sem nibh. Pellentesque ac eros aliquet lorem dictum ultricies. Etiam nibh nulla, faucibus quis lobortis eget, pretium eu justo. Quisque massa nibh, dapibus quis ultrices quis, malesuada congue odio. Aliquam sodales tempus vehicula. Vestibulum at urna bibendum, dignissim nunc feugiat, laoreet magna. Suspendisse tincidunt luctus odio eu semper. In eget arcu tellus. Donec urna nibh, fringilla nec eros molestie, dignissim dignissim sem. Donec vel nunc sed turpis ornare rutrum vel ut ex. Mauris sollicitudin risus nec augue fringilla, eget pulvinar ex iaculis. Nulla facilisi. Proin elementum turpis risus, at laoreet velit tempor nec. Curabitur orci orci, porttitor nec leo eu, volutpat tempus dui. Donec varius commodo erat, vel pretium diam dictum id.</p>

        <p>Morbi cursus sapien eros, in vulputate tortor eleifend dictum. Nam elit tortor, porta ac tortor ut, semper egestas mauris. Maecenas tincidunt ante a ex consectetur, ut mattis urna faucibus. Cras ullamcorper diam quis augue scelerisque, at gravida nibh tempus. Suspendisse eget est magna. Nunc ligula eros, interdum ultricies hendrerit sed, pellentesque sit amet elit. Sed luctus eget risus at interdum. Donec ullamcorper posuere mattis. Morbi mattis augue vel faucibus posuere. Nunc at orci augue. Sed orci velit, facilisis in interdum at, congue eget sapien.</p>

    </article>

    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/161359/prince.png" alt="" />

</section>
              
            
!

CSS

              
                
article {
    position: absolute;
    width: 25vw;
    text-align: justify;
    font-size: 13px;
    top: 30px;
    left: 15vw;
    

    h3 {
        text-align: center;
        margin: 0;
        text-transform: uppercase;
        font-size: 13px;
    }
    h1 {
        margin: 0 0 10px;
        text-align: center;
        font-size: 3.5em;
        line-height: 1em;
    }
    p {
        text-indent: 20px;
        margin: 0px;
    }
    
}

img {
    position: fixed;
    bottom: 0;
    left: 45vw;
    width: 40vw;
}
              
            
!

JS

              
                /*

15 minute design for a response to  https://twitter.com/roncharles/status/723520050636963841



*/
              
            
!
999px

Console