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

<main>
  <h1>Our Team</h1>
  <ul>
    <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>
  </ul>
  <p>Thanks to <a href="http://www.wocintechchat.com">#WOCinTech</a> for the groovy stock photos.</p>
</main>
            
          
!
            
              * {
  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: -5vw auto 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(16, 5vw); 
  grid-template-rows: repeat(9, 9vw); 
}
li {
  width: 20vw; 
  height: 18vw;
  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) {
  margin-top: 9vw;
}
li:nth-child(2n) {
  margin-left: -5vw;
}
li:nth-child(4n+3) {
  margin-left: -10vw;
}
li:nth-child(4n+4) {
  margin-left: -15vw;
}


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

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

Console