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="bg-pink-500 p-10">
    <div class="max-w-6xl mx-auto">
        <!-- Start: Article -->
        <article class="bg-white mx-auto pb-10 lg:pb-0 rounded-lg over overflow-hidden mb-10">

            <div class="lg:flex md:items-center md:p-4 xl:p-0">

                <!-- Start: Image -->
                <div class="w-full lg:w-1/2 mb-10 lg:mb-0">
                    <picture>
                        <source srcset="https://images.unsplash.com/photo-1591826246299-9113fd782020" media="(min-width: 1000px)" />
                        <source srcset="https://images.unsplash.com/photo-1591826246299-9113fd782020" media="(min-width: 600px)" />
                        <img src="https://images.unsplash.com/photo-1591826246299-9113fd782020" alt="BLM" />
                    </picture>
                </div>
                <!-- End: Image -->

                <!-- Start: Copy -->
                <div class="w-full lg:w-1/2 px-10 md:px-0 lg:px-10">
                    <p class="my-4 text-gray-500 font-semibold text-sm">Social Justice • <span class="italic">Feb 1,2021</span> · 3 min read</p>
                    <h2 class="text-2xl my-4 font-bold">Black Lives Matter foundation raised $90 million in 2020</h2>
                    <p class="mb-6 leading-relaxed">The national Black Lives Matter foundation raised more than $90 million dollars in 2020, with an average donation of about $30, the organization announced in a report Tuesday. Millions were donated to local organizations and local Black Lives Matter chapters in an effort to uplift the community. </p>
                    <a href="https://www.cbsnews.com/news/black-lives-matter-raises-90-million-2020/" class="rounded-full py-3 px-4 uppercase text-xs font-bold cursor-pointer tracking-wider text-pink-500 border-pink-500 border-2 hover:bg-pink-500 hover:text-white transition ease-out duration-700">Read more on CBS news</a>
                    <div class="flex items-center space-x-2 mt-10">
                        <img class="w-10 h-10 object-cover object-center rounded-full" src="https://randomuser.me/api/portraits/women/89.jpg" alt="random user">
                        <div>
                            <p class="text-gray-900 font-semibold">Zosia Alisa</p>
                            <p class="text-gray-500 font-semibold text-sm">
                                Associate Writer, CBS News
                            </p>
                        </div>
                    </div>
                </div>
                <!-- End: Copy -->

            </div>
        </article>
        <!-- End: Article -->

        <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
            <!-- Start: Article -->
            <article class="bg-white mx-auto pb-10 rounded-lg over overflow-hidden mb-10">

                <div class="md:items-center md:p-4 xl:p-0">

                    <!-- Start: Image -->
                    <div class="w-full mb-10 lg:mb-0">
                        <picture>
                            <source srcset="https://images.unsplash.com/photo-1591826246299-9113fd782020" media="(min-width: 1000px)" />
                            <source srcset="https://images.unsplash.com/photo-1591826246299-9113fd782020" media="(min-width: 600px)" />
                            <img src="https://images.unsplash.com/photo-1591826246299-9113fd782020" alt="BLM" />
                        </picture>
                    </div>
                    <!-- End: Image -->

                    <!-- Start: Copy -->
                    <div class="w-full px-10 md:px-0 md:mt-10 lg:px-10">
                        <p class="my-4 text-gray-500 font-semibold text-sm">Social Justice • <span class="italic">Feb 1,2021</span> · 3 min read</p>
                        <h2 class="text-2xl my-4 font-bold">Black Lives Matter foundation raised $90 million in 2020</h2>
                        <p class="mb-6 leading-relaxed">The national Black Lives Matter foundation raised more than $90 million dollars in 2020, with an average donation of about $30, the organization announced in a report Tuesday. Millions were donated to local organizations and local Black Lives Matter chapters in an effort to uplift the community. </p>
                        <a href="https://www.cbsnews.com/news/black-lives-matter-raises-90-million-2020/" class="rounded-full py-3 px-4 uppercase text-xs font-bold cursor-pointer tracking-wider text-pink-500 border-pink-500 border-2 hover:bg-pink-500 hover:text-white transition ease-out duration-700">Read more on CBS news</a>
                        <div class="flex items-center space-x-2 mt-10">
                            <img class="w-10 h-10 object-cover object-center rounded-full" src="https://randomuser.me/api/portraits/women/89.jpg" alt="random user">
                            <div>
                                <p class="text-gray-900 font-semibold">Zosia Alisa</p>
                                <p class="text-gray-500 font-semibold text-sm">
                                    Associate Writer, CBS News
                                </p>
                            </div>
                        </div>
                    </div>
                    <!-- End: Copy -->

                </div>
            </article>
            <!-- End: Article -->
            <!-- Start: Article -->
            <article class="bg-white mx-auto pb-10 rounded-lg over overflow-hidden mb-10">

                <div class="md:items-center md:p-4 xl:p-0">

                    <!-- Start: Image -->
                    <div class="w-full mb-10 lg:mb-0">
                        <picture>
                            <source srcset="https://images.unsplash.com/photo-1591826246299-9113fd782020" media="(min-width: 1000px)" />
                            <source srcset="https://images.unsplash.com/photo-1591826246299-9113fd782020" media="(min-width: 600px)" />
                            <img src="https://images.unsplash.com/photo-1591826246299-9113fd782020" alt="BLM" />
                        </picture>
                    </div>
                    <!-- End: Image -->

                    <!-- Start: Copy -->
                    <div class="w-full px-10 md:px-0 md:mt-10 lg:px-10">
                        <p class="my-4 text-gray-500 font-semibold text-sm">Social Justice • <span class="italic">Feb 1,2021</span> · 3 min read</p>
                        <h2 class="text-2xl my-4 font-bold">Black Lives Matter foundation raised $90 million in 2020</h2>
                        <p class="mb-6 leading-relaxed">The national Black Lives Matter foundation raised more than $90 million dollars in 2020, with an average donation of about $30, the organization announced in a report Tuesday. Millions were donated to local organizations and local Black Lives Matter chapters in an effort to uplift the community. </p>
                        <a href="https://www.cbsnews.com/news/black-lives-matter-raises-90-million-2020/" class="rounded-full py-3 px-4 uppercase text-xs font-bold cursor-pointer tracking-wider text-pink-500 border-pink-500 border-2 hover:bg-pink-500 hover:text-white transition ease-out duration-700">Read more on CBS news</a>
                        <div class="flex items-center space-x-2 mt-10">
                            <img class="w-10 h-10 object-cover object-center rounded-full" src="https://randomuser.me/api/portraits/women/89.jpg" alt="random user">
                            <div>
                                <p class="text-gray-900 font-semibold">Zosia Alisa</p>
                                <p class="text-gray-500 font-semibold text-sm">
                                    Associate Writer, CBS News
                                </p>
                            </div>
                        </div>
                    </div>
                    <!-- End: Copy -->

                </div>
            </article>
            <!-- End: Article -->
        </div>

                <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
            <!-- Start: Article -->
            <article class="bg-white mx-auto pb-10 rounded-lg over overflow-hidden mb-10">

                <div class="md:items-center md:p-4 xl:p-0">

                    <!-- Start: Image -->
                    <div class="w-full mb-10 lg:mb-0">
                        <picture>
                            <source srcset="https://images.unsplash.com/photo-1591826246299-9113fd782020" media="(min-width: 1000px)" />
                            <source srcset="https://images.unsplash.com/photo-1591826246299-9113fd782020" media="(min-width: 600px)" />
                            <img src="https://images.unsplash.com/photo-1591826246299-9113fd782020" alt="BLM" />
                        </picture>
                    </div>
                    <!-- End: Image -->

                    <!-- Start: Copy -->
                    <div class="w-full px-10 md:px-0 md:mt-10 lg:px-10">
                        <p class="my-4 text-gray-500 font-semibold text-sm">Social Justice • <span class="italic">Feb 1,2021</span> · 3 min read</p>
                        <h2 class="text-2xl my-4 font-bold">Black Lives Matter foundation raised $90 million in 2020</h2>
                        <p class="mb-6 leading-relaxed">The national Black Lives Matter foundation raised more than $90 million dollars in 2020, with an average donation of about $30, the organization announced in a report Tuesday. Millions were donated to local organizations and local Black Lives Matter chapters in an effort to uplift the community. </p>
                        <a href="https://www.cbsnews.com/news/black-lives-matter-raises-90-million-2020/" class="rounded-full py-3 px-4 uppercase text-xs font-bold cursor-pointer tracking-wider text-pink-500 border-pink-500 border-2 hover:bg-pink-500 hover:text-white transition ease-out duration-700">Read more on CBS news</a>
                        <div class="flex items-center space-x-2 mt-10">
                            <img class="w-10 h-10 object-cover object-center rounded-full" src="https://randomuser.me/api/portraits/women/89.jpg" alt="random user">
                            <div>
                                <p class="text-gray-900 font-semibold">Zosia Alisa</p>
                                <p class="text-gray-500 font-semibold text-sm">
                                    Associate Writer, CBS News
                                </p>
                            </div>
                        </div>
                    </div>
                    <!-- End: Copy -->

                </div>
            </article>
            <!-- End: Article -->
            <!-- Start: Article -->
            <article class="bg-white mx-auto pb-10 rounded-lg over overflow-hidden mb-10">

                <div class="md:items-center md:p-4 xl:p-0">

                    <!-- Start: Image -->
                    <div class="w-full mb-10 lg:mb-0">
                        <picture>
                            <source srcset="https://images.unsplash.com/photo-1591826246299-9113fd782020" media="(min-width: 1000px)" />
                            <source srcset="https://images.unsplash.com/photo-1591826246299-9113fd782020" media="(min-width: 600px)" />
                            <img src="https://images.unsplash.com/photo-1591826246299-9113fd782020" alt="BLM" />
                        </picture>
                    </div>
                    <!-- End: Image -->

                    <!-- Start: Copy -->
                    <div class="w-full px-10 md:px-0 md:mt-10 lg:px-10">
                        <p class="my-4 text-gray-500 font-semibold text-sm">Social Justice • <span class="italic">Feb 1,2021</span> · 3 min read</p>
                        <h2 class="text-2xl my-4 font-bold">Black Lives Matter foundation raised $90 million in 2020</h2>
                        <p class="mb-6 leading-relaxed">The national Black Lives Matter foundation raised more than $90 million dollars in 2020, with an average donation of about $30, the organization announced in a report Tuesday. Millions were donated to local organizations and local Black Lives Matter chapters in an effort to uplift the community. </p>
                        <a href="https://www.cbsnews.com/news/black-lives-matter-raises-90-million-2020/" class="rounded-full py-3 px-4 uppercase text-xs font-bold cursor-pointer tracking-wider text-pink-500 border-pink-500 border-2 hover:bg-pink-500 hover:text-white transition ease-out duration-700">Read more on CBS news</a>
                        <div class="flex items-center space-x-2 mt-10">
                            <img class="w-10 h-10 object-cover object-center rounded-full" src="https://randomuser.me/api/portraits/women/89.jpg" alt="random user">
                            <div>
                                <p class="text-gray-900 font-semibold">Zosia Alisa</p>
                                <p class="text-gray-500 font-semibold text-sm">
                                    Associate Writer, CBS News
                                </p>
                            </div>
                        </div>
                    </div>
                    <!-- End: Copy -->

                </div>
            </article>
            <!-- End: Article -->

                    <!-- Start: Article -->
            <article class="bg-white mx-auto pb-10 rounded-lg over overflow-hidden mb-10">

                <div class="md:items-center md:p-4 xl:p-0">

                    <!-- Start: Image -->
                    <div class="w-full mb-10 lg:mb-0">
                        <picture>
                            <source srcset="https://images.unsplash.com/photo-1591826246299-9113fd782020" media="(min-width: 1000px)" />
                            <source srcset="https://images.unsplash.com/photo-1591826246299-9113fd782020" media="(min-width: 600px)" />
                            <img src="https://images.unsplash.com/photo-1591826246299-9113fd782020" alt="BLM" />
                        </picture>
                    </div>
                    <!-- End: Image -->

                    <!-- Start: Copy -->
                    <div class="w-full px-10 md:px-0 md:mt-10 lg:px-10">
                        <p class="my-4 text-gray-500 font-semibold text-sm">Social Justice • <span class="italic">Feb 1,2021</span> · 3 min read</p>
                        <h2 class="text-2xl my-4 font-bold">Black Lives Matter foundation raised $90 million in 2020</h2>
                        <p class="mb-6 leading-relaxed">The national Black Lives Matter foundation raised more than $90 million dollars in 2020, with an average donation of about $30, the organization announced in a report Tuesday. Millions were donated to local organizations and local Black Lives Matter chapters in an effort to uplift the community. </p>
                        <a href="https://www.cbsnews.com/news/black-lives-matter-raises-90-million-2020/" class="rounded-full py-3 px-4 uppercase text-xs font-bold cursor-pointer tracking-wider text-pink-500 border-pink-500 border-2 hover:bg-pink-500 hover:text-white transition ease-out duration-700">Read more on CBS news</a>
                        <div class="flex items-center space-x-2 mt-10">
                            <img class="w-10 h-10 object-cover object-center rounded-full" src="https://randomuser.me/api/portraits/women/89.jpg" alt="random user">
                            <div>
                                <p class="text-gray-900 font-semibold">Zosia Alisa</p>
                                <p class="text-gray-500 font-semibold text-sm">
                                    Associate Writer, CBS News
                                </p>
                            </div>
                        </div>
                    </div>
                    <!-- End: Copy -->

                </div>
            </article>
            <!-- End: Article -->
            
        </div>

    </div>
</section>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console