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="warning">This demo only works in browsers that support CSS Grid Layout. If you can see this message, then your browser doesn't supporting Grid. You can try out Grid in <a href="https://nightly.mozilla.org/">Firefox Nightly</a> or <a href="http://gridbyexample.com/browsers/">other browsers by flipping a flag</a>.</div> 

  <h1>Our Team</h1>
    <li><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/10558/photo01.jpg"></li>
    <li><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/10558/photo02.jpg"></li>
    <li><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/10558/photo03.jpg"></li>
    <li><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/10558/photo04.jpg"></li>
    <li><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/10558/photo05.jpg"></li>
    <li><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/10558/photo06.jpg"></li>
    <li><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/10558/photo07.jpg"></li>
    <li><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/10558/photo08.jpg"></li>
    <li><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/10558/photo09.jpg"></li>
    <li><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/10558/photo10.jpg"></li>
    <li><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/10558/photo11.jpg"></li>
    <li><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/10558/photo12.jpg"></li>
  <p>Thanks to <a href="http://www.wocintechchat.com">#WOCinTech</a> for the groovy stock photos.</p>
              * {
  box-sizing: border-box; 
  margin: 0;
  padding: 0; 
body {
  color: #888;
  font-family: Helvetica;
img {
  width: 100%;
h1 { 
  margin: 7vw 10vw 0;
  font-size: 3vw;
p {
  font-size: 80%;
  clear: both;
  margin: 0 5vw 0 0;
  text-align: right;
ul {
  width: 75vw;
  margin: 0 auto;
  list-style: none;
  display: grid;
////  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
  grid-template-columns: repeat(3, unquote("[odd-start] 50px [even-end] 50px [odd-mid] 50px [even-start] 50px [odd-end] 50px [even-mid] 50px"));
// The unquote segment of this code is only here to deal with a bug in Sass 3.4. It can be removed once Sass 3.5 ships. Regular CSS should NOT have such code and instead should look like this:  
//  grid-template-columns: repeat(4, [odd-start] [even-end] [odd-mid] [even-start] [odd-end] [even-mid]);
  grid-template-rows: repeat(4, unquote("[even-start even-end] 80px [odd-start odd-end] 80px"));
li {
  width: 200px; 
  height: 160px;
  clip-path: polygon(75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%, 25% 0);
  grid-area: span 2 / span 4;

li:nth-child(2n+1) { // odd
  grid-column-start: odd-start;
  grid-row-start: odd-start;
li:nth-child(2n) { // even
  grid-column-start: even-start;
  grid-row-start: even-start;

// Style a Warning Message. Remove if Grid works ---------------------------------------

.warning {
  color: red;
  font-size: 200%; 
@supports (display: grid) {
  .warning {
    display: none;
Loading ..................