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 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.

Quick-add: + add another resource

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.

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="grids">

  <ul class="grid-9">
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
  </ul>

  <ul class="grid-8">
    <li></li>
    <li class="light"></li>
  </ul>

  <ul class="grid-7">
    <li></li>
    <li></li>
    <li class="light"></li>
  </ul>

  <ul class="grid-6">
    <li></li>
    <li class="light"></li>
    <li class="light"></li>
    <li class="light"></li>
  </ul>

  <ul class="grid-5">
    <li></li>
    <li></li>
    <li class="light"></li>
    <li></li>
    <li></li>
    <li class="light"></li>
    <li class="light"></li>
  </ul>

  <ul class="grid-4">
    <li></li>
    <li class="light"></li>
  </ul>

  <ul class="grid-3">
    <li></li>
    <li></li>
    <li class="light"></li>
    <li class="light"></li>
  </ul>

  <ul class="grid-2">
    <li></li>
    <li></li>
    <li></li>
    <li class="light"></li>
    <li class="light"></li>
  </ul>

  <ul class="grid-1">
    <li></li>
    <li class="light"></li>
    <li class="light"></li>
  </ul>

</div>
            
          
!
            
              * {
  margin: 0;
}

body {
  background: #dbe4ff;
  margin: 2em;
}

.grids {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  width: 100vmin;
  height: calc(100vh - 4em);
  grid-gap: 2em;
  margin: 0 auto;
}

ul {
  display: grid;
  /*grid-template-columns: repeat(2, 1fr 1fr 3fr 5fr);*/
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  /*grid-auto-rows: minmax(24vw, 1fr);*/
  /*grid-template-rows: repeat(autofit, 1fr 1fr 3fr 5fr);*/
  /*grid-template-rows: repeat(autofit, 3fr 2fr);*/
  /*grid-template-columns: repeat(autofit, minmax(120px, 1fr));*/
  /*grid-template-columns: repeat(2, 1fr 1fr 3fr 5fr);*/
  /*grid-template-columns: [duck] 1fr [duck] 1fr [goose];*/
  grid-gap: .5em;
  width: 100%;
  height: 100%;
  background: white;
  padding: .5em;
  border: .2em solid #91a7ff;
  /*box-shadow: 0 3px 6px rgba(54,79,199,0.05), 0 7px 14px rgba(54,79,199,0.1);*/
  box-sizing: border-box;
  border-radius: .5em;
  transition: all 0.3s ease;
}

/*ul:hover {
  box-shadow: 0 8px 15px rgba(54,79,199,0.1), 0 18px 35px rgba(54,79,199,0.15);
  transform: translateY(-1px);
  transition: all 0.1s ease;
}*/

li {
  /*border: .25em solid #3b5bdb;*/
  background: #748ffc;
  box-sizing: border-box;
  /*border-radius: .5em;*/
}

.light {
  opacity: .33;
}

/*GRID 1*/

.grid-1 li:nth-child(1) {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}

.grid-1 li:nth-child(2) {
  grid-column: 2;
  grid-row: 3;
}

.grid-1 li:nth-child(3) {
  grid-column: 3;
  grid-row: 2 / span 2;
}


/*GRID 2*/

.grid-2 li:nth-child(1),
.grid-2 li:nth-child(2),
.grid-2 li:nth-child(3) {
  grid-row: 1 / span 2;
}

.grid-2 li:nth-child(4) {
  grid-column: 1 / span 2;
}

.grid-2 li:nth-child(5) {

}


/*GRID 3*/

.grid-3 li:nth-child(1) {
  grid-column: 1 / span 2;
}

.grid-3 li:nth-child(3) {
  grid-column: 1 / span 2;
  grid-row: 2 / span 2;
}

.grid-3 li:nth-child(4) {
  grid-row: 2 / span 2;
}


/* GRID 4 */

.grid-4 li:nth-child(1) {
  grid-column: 1 / span 2;
  grid-row: 2 / span 2;
}

.grid-4 li:nth-child(2) {
  grid-row: 2;
}


/*GRID 5*/
.grid-5 li:nth-child(7) {
  grid-column: 3;
}

/*GRID 6*/

.grid-6 li:nth-child(1) {
  grid-column: 1 / -1;
}

.grid-6 li:nth-child(2),
.grid-6 li:nth-child(3),
.grid-6 li:nth-child(4) {
  grid-row: 2 / span 2;
}


/*GRID 7*/

.grid-7 li:nth-child(1) {
  grid-column: 1 / span 2;
}

.grid-7 li:nth-child(3) {
  grid-column: 3;
  grid-row: 3;
}


/*GRID 8*/

.grid-8 li:nth-child(1) {
  grid-column: 1 / -1;
  grid-row: 1 / span 2;
}


            
          
!
999px
Loading ..................

Console