cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmloctocatspinnerstartv

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.

            
              <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>
            
          
!
            
              
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;
}
            
          
!
            
              /*

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



*/
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console