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.

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

              
                <p class="browser-alert">
    This page looks best in browsers that support CSS Grid.
    <a href="https://caniuse.com/#search=grid">More info</a>
</p>
<article class="blog-post">
    <header class="blog-post-header">
        <h1 class="blog-post-title">
            At earum odio provident quod voluptatibus
        </h1>
        <time datetime="2017-08-12T19:00" class="blog-post-date">August 12, 2017</time>
    </header>
    <aside class="blog-post-share">
        <a href=""><i class="fa fa-facebook"></i></a>
        <a href=""><i class="fa fa-twitter"></i></a>
        <a href=""><i class="fa fa-linkedin"></i></a>
        <a href=""><i class="fa fa-envelope"></i></a>
    </aside>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid
        aspernatur dolore est eveniet facilis fugiat incidunt magni
        molestias nisi, nulla repellat tempore voluptates. At earum odio
        provident quod velit voluptatibus! Amet assumenda atque beatae consequatur deserunt eveniet
        exercitationem labore maiores minus natus neque, officia
        possimus quasi quia quibusdam quisquam sapiente ut. Amet animi
        corporis cupiditate eaque iure quis, tempora veniam? Consectetur, doloremque eum exercitationem perferendis ratione rerum vero.</p>
    <h2>Amet assumenda atque beatae consequatur</h2>
    <p>Amet assumenda atque beatae consequatur deserunt eveniet
        exercitationem labore maiores minus natus neque, officia
        possimus quasi quia quibusdam quisquam sapiente ut. Amet animi
        corporis cupiditate eaque iure quis, tempora veniam?</p>
    <aside>
        <p>A aperiam aut beatae commodi consectetur corporis cum debitis.</p>
    </aside>
    <p>Consectetur, doloremque eum exercitationem perferendis ratione
        rerum vero voluptatum. Accusamus ad beatae consectetur, ea esse
        eum eveniet facere hic id illo itaque labore magni molestias
        nemo numquam sed suscipit unde.</p>
    <p>A aperiam aut beatae commodi consectetur corporis cum debitis
        eligendi enim error excepturi harum illo in ipsum modi numquam
        omnis, praesentium quae quos ratione similique totam, vel vitae
        voluptatibus voluptatum!</p>
    <p>Adipisci autem consequuntur cupiditate dicta dolore dolorem
        doloribus dolorum eum, id ipsum labore libero minus nemo
        provident quasi quidem recusandae repellat sequi, tempore ut?
        Eveniet ipsum necessitatibus praesentium quod voluptas!</p>
    <h2>Aliquam consequatur deserunt</h2>
    <p>Aliquam consequatur deserunt eaque eius facere fuga harum id illo
        labore modi natus nihil odio omnis quas rem repellendus saepe
        soluta tempora, temporibus, velit voluptatem voluptates
        voluptatibus? Commodi cupiditate, vitae.</p>
    <aside>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
    </aside>
    <p>Accusamus dicta dolorum ea eveniet expedita laboriosam magni
        saepe. Alias aut beatae dignissimos eveniet maxime numquam sequi
        temporibus velit vero voluptatibus. Aperiam consectetur officiis
        tempore velit? Accusantium excepturi obcaecati reiciendis.</p>
    <p>Autem consequuntur cupiditate fuga, fugiat molestias
        necessitatibus officia quod quos reiciendis voluptates.
        Assumenda autem cum delectus eum, eveniet in molestiae nemo
        nihil non sequi unde ut velit veniam vero voluptate.</p>
    <p>Eos eum expedita obcaecati omnis. Aliquid consequuntur eius enim
        et excepturi non omnis. Autem cumque, deserunt ducimus eos fuga
        perspiciatis recusandae repellat sit suscipit voluptatibus!
        Dolores et iste mollitia sequi.</p>
    <aside>
        <p>Aspernatur enim magnam officia quam voluptatibus.</p>
    </aside>
    <p>Ab cupiditate deserunt dolorem dolorum excepturi maiores minima
        nihil officiis repudiandae! Ad alias dicta fugit inventore,
        nesciunt placeat quasi rem sit totam! Ab at atque dolorem
        doloremque, magnam numquam repellat!</p>
    <figure>
        <img src="http://via.placeholder.com/1800x800" alt="Image alt text">
        <figcaption>Aspernatur enim magnam officia quam voluptatibus.</figcaption>
    </figure>
    <h2>Laborum mollitia necessitatibus</h2>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid at
        cumque deleniti distinctio ea minus nesciunt, provident quis. Autem
        cupiditate dolorem harum omnis quasi ratione rem sed similique vel
        velit.</p>
    <p>Aliquid aperiam commodi dicta doloremque dolores earum excepturi
        fugiat ipsa, laborum mollitia necessitatibus nemo nesciunt numquam
        obcaecati, perferendis provident quas quasi ratione. Animi, eius,
        non. Atque fugit quidem veniam voluptatum?</p>
    <p>Accusamus adipisci consequatur ea, est eum harum impedit mollitia,
        neque omnis ratione reprehenderit saepe. A amet autem consequuntur
        cum enim hic iste obcaecati, officiis reiciendis repellendus
        sapiente tempore totam voluptatem.</p>
    <aside>
        <p>Alias ducimus et in mollitia non porro qui</p>
    </aside>
    <p>Alias ducimus et in mollitia non porro qui recusandae unde!
        Architecto aut autem dolor earum, eius expedita illum, minima
        molestiae, molestias nihil quibusdam quo quod reprehenderit sapiente
        sequi sunt vitae!</p>
    <p>Cum in iste modi qui sunt? Ab ad animi aperiam blanditiis, culpa
        dolore doloribus ex in iure modi necessitatibus quam quia, similique
        tempora temporibus. Aliquam doloremque nisi obcaecati quisquam
        unde?</p>
    <footer class="blog-post-footer">
        <p>Copyright © 2017 <a href="<?php echo site_url(); ?>">Jonathan Harrell</a></p>
    </footer>
</article>
              
            
!

CSS

              
                .browser-alert {
    margin: 0 0 3rem;
    padding: 1rem;
    background-color: #2eec96;
    color: white;
}

.browser-alert a {
    color: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    line-height: 24px;
}

.blog-post {
    max-width: 70ch;
    margin: 3rem auto;
    padding: 1.5rem;
}

.blog-post-title {
    margin-top: 0;
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    line-height: 40px;
    font-weight: 700;
}

.blog-post-date {
    text-transform: uppercase;
}

.blog-post-share {
    margin: 2rem 0;
}

.blog-post-share a {
    margin-right: 1rem;
    font-size: 22px;
    color: black;
}

.blog-post-share a:hover {
    color: #2eec96;
}

.blog-post h2 {
    margin: 2em 0 0.5em;
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    line-height: 30px;
    font-weight: 700;
}

.blog-post aside {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    color: #2eec96;
}

.blog-post figure {
    margin: 3rem 0;
}

figure img {
    max-width: 100%;
    height: auto;
}

figure figcaption {
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.blog-post-footer a {
    text-decoration: none;
    color: #2eec96;
}

@supports(display: grid) {
    .browser-alert {
        display: none;
    }

    body {
        background-color: #2eec96;
    }

    .blog-post {
        width: calc(100vw - 6rem);
        margin: 1.5rem auto;
        padding: 3rem 1.5rem;
        background-color: white;
    }

    @media (min-width: 65rem) {
        .blog-post {
            display: grid;
            grid-template-columns: repeat(12, 1fr);
            grid-column-gap: 2rem;
            max-width: 70rem;
            padding: 5rem 1.5rem;
        }

        .blog-post-header {
            grid-column-start: 2;
            grid-column-end: span 3;
            text-align: right;
        }

        .blog-post p,
        .blog-post h2 {
            grid-column-start: 5;
            grid-column-end: span 6;
        }

        .blog-post p {
            margin: 0.5em 0;
        }

        .blog-post p:first-of-type {
            grid-row-start: 1;
        }

        .blog-post figure {
            display: grid;
            grid-template-columns: repeat(12, 1fr);
            grid-column-gap: 2rem;
            grid-column-start: 1;
            grid-column-end: -1;
            margin: 5rem 0;
        }

        .blog-post figure img {
            grid-column-start: 1;
            grid-column-end: -1;
        }

        .blog-post figure figcaption {
            grid-column-start: 5;
            grid-column-end: span 6;
            margin: 1rem 0;
        }

        .blog-post aside {
            grid-column-start: 3;
            grid-column-end: 5;
            font-style: italic;
            text-align: right;
        }

        aside.blog-post-share {
            grid-column-start: 11;
            grid-column-end: 12;
            margin: 0;
            font-style: inherit;
            color: inherit;
        }

        .blog-post-share a {
            display: block;
            margin: 1rem 0;
        }

        .blog-post-footer {
            grid-column-start: 5;
            grid-column-end: span 6;
            margin-top: 3rem;
        }

        .blog-post-footer p {
            font-size: 14px;
        }
    }
}
              
            
!

JS

              
                
              
            
!
999px

Console