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="my-grid">
    <div class="my-cell type1">
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Optio, doloribus!
    </div>
    <div class="my-cell type1">
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Fugit quaerat officiis doloribus commodi totam molestiae, maxime id, nisi sit veniam ipsam quam accusantium, quo iusto voluptatibus sequi. Quibusdam perspiciatis, dolor.
    </div>
    <div class="my-cell type2">
        Lorem ipsum dolor sit amet, consectetur adipisicing elit.
    </div>
    <div class="my-cell type3">
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Architecto sed, rerum ratione at modi sunt!
    </div>
    <div class="my-cell type4">
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iure distinctio, assumenda, molestias culpa ad debitis qui odio quidem at, dolore nobis dolorem minus ea! Aspernatur minus commodi, tempora optio consequatur temporibus placeat perferendis possimus est veniam corrupti eum atque tempore dignissimos illum totam fuga error ea. Explicabo impedit, temporibus totam.
    </div>
    <div class="my-cell type5">
        Lorem ipsum dolor sit amet.
    </div>
    <div class="my-cell type6">
        Lorem ipsum dolor sit amet.
    </div>
    <div class="my-cell type7">
        Lorem ipsum dolor sit amet.
    </div>
</div>
            
          
!
            
              /* ...grid styles are loaded from another pen... you can find the code here: https://github.com/juliancwirko/s-grid */

/* Here are custom demo styles */

.my-grid
    background-color #E9E9EA
    grid()
    .my-cell
        background-color #D5D5D7
        padding rem-calc(20)
        &.type1
            cell(1, 1)
            @media screen and (min-width: rem-calc(breakpoints[md]))
                cell(1, 2)
            @media screen and (min-width: rem-calc(breakpoints[lg]))
                cell(1, 3)
        &.type2
            cell(1, 1, 'center')
            @media screen and (min-width: rem-calc(breakpoints[lg]))
                cell(1, 3, 'center')
        &.type3
            cell(1, 1)
            @media screen and (min-width: rem-calc(breakpoints[md]))
                cell(1, 2)
            @media screen and (min-width: rem-calc(breakpoints[lg]))
                cell(1, 1)
        &.type4
            cell(1, 2)
            @media screen and (min-width: rem-calc(breakpoints[lg]))
                cell(2, 3)
        &.type5
            cell(1, 1, 'bottom')
            @media screen and (min-width: rem-calc(breakpoints[sm]))
                cell(1, 2, 'bottom')
            @media screen and (min-width: rem-calc(breakpoints[md]))
                cell(1, 1, 'bottom')
            @media screen and (min-width: rem-calc(breakpoints[lg]))
                cell(1, 3, 'bottom')
        &.type6
            cell(1, 1)
            @media screen and (min-width: rem-calc(breakpoints[sm]))
                cell(1, 3)
        &.type7
            cell(1, 1)
            @media screen and (min-width: rem-calc(breakpoints[sm]))
                cell(1, 2)
                cell-offset(1, 6)
            
          
!
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