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.

            
              <div class="cards">
    <div class="card">
        <h2 class="title">Card 1</h2>
        <div class="text">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Hic magnam, itaque obcaecati, dolorum odio voluptate ratione doloribus ipsa voluptates ipsam, repellat labore voluptatum iure recusandae mollitia impedit delectus? Odit, rerum!</div>
    </div>
    <div class="card">
        <h2 class="title">Card 2</h2>
        <div class="text">Numquam fugiat rerum tempora facilis perferendis facere, ex, iusto accusamus provident molestiae temporibus reprehenderit. Accusantium sequi impedit a, ea harum perferendis deleniti nulla ex, deserunt similique adipisci. Possimus, quibusdam, amet.</div>
    </div>
    <div class="card">
        <h2 class="title">Card 3</h2>
        <div class="text">Distinctio quibusdam similique temporibus, molestias accusamus architecto in. Commodi labore laboriosam velit provident adipisci aspernatur vel facilis, iusto cupiditate repudiandae molestiae, perferendis nobis nemo, et praesentium at illo neque maxime.</div>
    </div>
    <div class="card">
        <h2 class="title">Card 4</h2>
        <div class="text">Inventore quo molestias, laborum labore eligendi voluptatibus dolore aliquam enim, amet ipsum dolorem. Molestiae quidem, fugit! Ad, illum, impedit. Eveniet necessitatibus delectus repellat, nobis esse quidem neque, officia mollitia cumque.</div>
    </div>
    <div class="card">
        <h2 class="title">Card 5</h2>
        <div class="text">Harum ad nostrum neque quaerat expedita ea quos necessitatibus praesentium dolorum eius consequatur, ullam fugit, saepe doloribus vel consectetur! Dolore nihil deleniti autem maiores possimus incidunt nisi recusandae maxime eius.</div>
    </div>
    <div class="card">
        <h2 class="title">Card 6</h2>
        <div class="text">Iste animi ducimus laborum culpa, excepturi in quo dolorum quasi expedita, mollitia cupiditate. Aperiam neque mollitia animi sapiente ab officiis, tempora voluptatem. Cumque, facilis. Dolores saepe asperiores doloremque illo unde!</div>
    </div>
    <div class="card">
        <h2 class="title">Card 7</h2>
        <div class="text">Commodi explicabo, accusamus ipsum reprehenderit recusandae doloribus dicta. Quam maiores eos tempora voluptatem placeat laboriosam et expedita nostrum eius vitae dignissimos non, architecto sint deleniti autem nam molestiae eligendi facere?</div>
    </div>
    <div class="card">
        <h2 class="title">Card 8</h2>
        <div class="text">Reiciendis saepe dolore quisquam quod earum, illum iste tenetur, maxime nihil enim similique necessitatibus nemo harum rerum sed vero dolorum eius quia quasi incidunt sint culpa labore non quas! Aperiam.</div>
    </div>
    <div class="card">
        <h2 class="title">Card 9</h2>
        <div class="text">Repudiandae, nisi, quibusdam? Iusto architecto adipisci, quisquam, maiores minus perferendis eligendi maxime similique molestias qui quasi porro aperiam deserunt. Odit, id deserunt illum nobis maiores labore earum rem obcaecati aspernatur?</div>
    </div>
    <div class="card">
        <h2 class="title">Card 10</h2>
        <div class="text">Quasi cupiditate illo officia minima fugiat omnis impedit ullam, temporibus modi atque quod, accusantium pariatur sit, facilis vero! Magnam laudantium sapiente, eum. Animi inventore sed aut aliquid deleniti amet asperiores.</div>
    </div>
</div>
            
          
!
            
              html {
    padding: 20px;
}

.card {
    max-width: 300px;
    margin: 0 auto 10px;
    padding: 20px;
    background: beige;
    box-shadow: 1px 1px gray;
}

.card > .title {
    margin: 0;
}

.card > .text {
    display: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}
            
          
!
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