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="img-grid">
  <img class="item" src="http://samkapila.com/uploads/library01.jpg" alt="library stairwell detail">
  <img class="item"src="http://samkapila.com/uploads/library02.jpg" alt="library window details including the door to nowhere">
  <img class="item"src="http://samkapila.com/uploads/library03.jpg" alt="view from the top floor looking down">
  <img class="item" src="http://samkapila.com/uploads/library04.jpg" alt="elevator light reflection patterns">
  <img class="item" src="http://samkapila.com/uploads/library05.jpg" alt="library solar panel rooftop">
  <img class="item" src="http://samkapila.com/uploads/library06.jpg" alt="">

              * {
  box-sizing: border-box;
.img-grid {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: 25%; 
    grid-gap: 15px;
  img {
    max-width: 100%;

@media screen and (min-width: 350px) {
  .img-grid {
  grid-template-columns: 1fr 1fr;   

 @media screen and (min-width: 650px) {
  .img-grid {
  grid-template-columns: 1fr 1fr 1fr;
Loading ..................