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.

            
              <article class="post">
    <main class="body">
        <aside class="reference">  
            <h2 class="subhead">Subhead goes here and here</h2>
        </aside>
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus vestibulum varius libero vel viverra. Aliquam et dictum leo. Sed purus orci, egestas vitae lorem quis, tincidunt efficitur quam. Suspendisse porta rutrum metus eu pulvinar. Vivamus a eleifend neque, consectetur malesuada lacus. Aliquam congue quam ac metus maximus, id faucibus lorem tincidunt. Donec euismod neque sed tincidunt mattis. Donec sit amet augue vulputate, laoreet mi sit amet, rutrum sapien. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Curabitur luctus id nisi at pharetra. Etiam dignissim consequat metus.</p>
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus vestibulum varius libero vel viverra. Aliquam et dictum leo. Sed purus orci, egestas vitae lorem quis, tincidunt efficitur quam. Suspendisse porta rutrum metus eu pulvinar. Vivamus a eleifend neque, consectetur malesuada lacus. Aliquam congue quam ac metus maximus, id faucibus lorem tincidunt. Donec euismod neque sed tincidunt mattis. Donec sit amet augue vulputate, laoreet mi sit amet, rutrum sapien. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Curabitur luctus id nisi at pharetra. Etiam dignissim consequat metus.</p>

        <section class="break">
            <img src="https://placekitten.com/1900/400" alt="" />
        
        </section>
        
        <aside class="reference">  
            <h2 class="subhead">Subhead goes here and here</h2>
        </aside>
        
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus vestibulum varius libero vel viverra. Aliquam et dictum leo. Sed purus orci, egestas vitae lorem quis, tincidunt efficitur quam. Suspendisse porta rutrum metus eu pulvinar. Vivamus a eleifend neque, consectetur malesuada lacus. Aliquam congue quam ac metus maximus, id faucibus lorem tincidunt. Donec euismod neque sed tincidunt mattis. Donec sit amet augue vulputate, laoreet mi sit amet, rutrum sapien. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Curabitur luctus id nisi at pharetra. Etiam dignissim consequat metus.</p>
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus vestibulum varius libero vel viverra. Aliquam et dictum leo. Sed purus orci, egestas vitae lorem quis, tincidunt efficitur quam. Suspendisse porta rutrum metus eu pulvinar. Vivamus a eleifend neque, consectetur malesuada lacus. Aliquam congue quam ac metus maximus, id faucibus lorem tincidunt. Donec euismod neque sed tincidunt mattis. Donec sit amet augue vulputate, laoreet mi sit amet, rutrum sapien. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Curabitur luctus id nisi at pharetra. Etiam dignissim consequat metus.</p>

        <aside class="big-section break">
            <div class="big-image"><img src="http://placekitten.com/1000/1000" alt="" /></div>
            
            <div class="big-content">
                <h2>Hello World</h2>
            </div>
        </aside>
        
        
    </main>

</article>
            
          
!
            
              .post {
    
    .body {
        p {
            margin: 0;
        }
        margin: 20px 0;
        display: grid;
        grid-column-gap: 5vw;
        grid-row-gap: calc(1.5rem + 1vw);
        grid-template-columns: repeat(6, 10vw);
        .reference {
            grid-column: span 2;
            padding: 0 10px;
            h2 {
                text-transform: uppercase;
                font-size: .8em;
                margin-top: 0;
            }
        }
        p {
            grid-column: 3 / span 5;
            padding: 0 10px;
            
        }
        .big-section {
            display: flex;
            min-height: 80vh;
            .big-image {
                flex: 2;
                height: 100%;
                img {
                    height: 100%;
                    object-fit: cover;

                }
            }
            .big-content {
                flex: 1;
                padding: 40px;
                box-sizing: border-box;
                background-color: #ccc;
            }
            
            img {
                flex: 1;
                max-width: 100%;
            }
        }
        .break {
            grid-column: 1 / span 7;
            margin: 40px 0;
        }
        img {
            max-width: 100%;
        }
        p {
            
        }
        
    }
    
}
            
          
!
999px
Loading ..................

Console