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.

            
              <ul>
  <li>One</li>
  <li>Two</li>
  <li>Three</li>
  <li>Four</li>
  <li>Five</li>
  <li>Six</li>
  <li>Seven</li>
  <li>Eight</li>
  <li>Nine</li>
  <li>Ten</li>
  <li>Eleven</li>
  <li>Twelve</li>
  <li>Thirteen</li>
</ul>
            
          
!
            
              // Now let's think about the items.
// Write code to target items. Make the 3rd item twice as wide as the others. Make the 7th item twice as tall as the others. Make the 9th item both twice as tall and twice as wide. 

ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  grid-gap: 1rem;
}







//--------------------------------------
// Additional Visual Styling
body {
  background: #F6F3EA
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: white;
  font-family: Avenir, Heveltica, Arial, san-serif;
  font-weight: bold;
  font-size: 1.5rem;
}
li {
  padding: 1em;
  background: #F9423A;
}
li:nth-child(3),
li:nth-child(7),
li:nth-child(9) {
  background: #FF9124;
}
            
          
!
            
              /* Stuck?
   Scroll down for a clue (not the full answer):

    ||
    ||
    ||
    \/

























// Here's a hint:

li {
  grid-row: span 2;
}



// Still Stuck?
   Scroll down for the answer:

    ||
    ||
    ||
    \/










li:nth-child(3) {
  grid-column: span 2;
}
li:nth-child(7) {
  grid-row: span 2;
}
li:nth-child(9) {
  grid-row: span 2;
  grid-column: span 2;
}


*/
            
          
!
999px
Loading ..................

Console